comparison orpg/mapper/map_handler.py @ 14:0b8b7e3ed78d traipse_dev

Adding fixes from OpenRPG 1.8.0 Includes GUI patch for Linux users, init2 plugin, cherrypy XML refrence Completely removes approot from the startup process and creates a software cleanup process as well.
author sirebral
date Mon, 20 Jul 2009 21:25:13 -0500
parents 4385a7d0efd1
children 78407d627cba
comparison
equal deleted inserted replaced
13:3add6bbc3a56 14:0b8b7e3ed78d
32 def __init__(self, parent, id, canvas): 32 def __init__(self, parent, id, canvas):
33 base_layer_handler.__init__(self, parent, id, canvas) 33 base_layer_handler.__init__(self, parent, id, canvas)
34 34
35 def build_ctrls(self): 35 def build_ctrls(self):
36 base_layer_handler.build_ctrls(self) 36 base_layer_handler.build_ctrls(self)
37
38 """
37 self.width = wx.TextCtrl(self, wx.ID_ANY, size=(75,25)) 39 self.width = wx.TextCtrl(self, wx.ID_ANY, size=(75,25))
38 self.height = wx.TextCtrl(self, wx.ID_ANY, size=(75,25)) 40 self.height = wx.TextCtrl(self, wx.ID_ANY, size=(75,25))
39 self.apply_button = wx.Button(self, wx.ID_OK, "Apply", style=wx.BU_EXACTFIT) 41 self.apply_button = wx.Button(self, wx.ID_OK, "Apply", style=wx.BU_EXACTFIT)
42 """
43
44 self.width = wx.TextCtrl(self, wx.ID_ANY)
45 self.height = wx.TextCtrl(self, wx.ID_ANY)
46 self.apply_button = wx.Button(self, wx.ID_OK, "Apply", style=wx.BU_EXACTFIT)
47
40 self.load_default = wx.Button(self, wx.ID_ANY, "Default Map", style=wx.BU_EXACTFIT) 48 self.load_default = wx.Button(self, wx.ID_ANY, "Default Map", style=wx.BU_EXACTFIT)
49
50 """
41 self.sizer.Prepend(wx.Size(20,25),1) 51 self.sizer.Prepend(wx.Size(20,25),1)
42 self.sizer.Prepend(self.load_default, 0, wx.EXPAND) 52 self.sizer.Prepend(self.load_default, 0, wx.EXPAND)
43 self.sizer.Prepend(wx.Size(20,25)) 53 self.sizer.Prepend(wx.Size(20,25))
44 self.sizer.Prepend(self.apply_button, 0, wx.EXPAND) 54 self.sizer.Prepend(self.apply_button, 0, wx.EXPAND)
45 self.sizer.Prepend(wx.Size(20,25)) 55 self.sizer.Prepend(wx.Size(20,25))
47 self.sizer.Prepend(wx.StaticText(self, -1, "Height: "),0,wx.ALIGN_CENTER) 57 self.sizer.Prepend(wx.StaticText(self, -1, "Height: "),0,wx.ALIGN_CENTER)
48 self.sizer.Prepend(wx.Size(10,25)) 58 self.sizer.Prepend(wx.Size(10,25))
49 self.sizer.Prepend(self.width, 0, wx.EXPAND) 59 self.sizer.Prepend(self.width, 0, wx.EXPAND)
50 self.sizer.Prepend(wx.StaticText(self, -1, "Width: "),0,wx.ALIGN_CENTER) 60 self.sizer.Prepend(wx.StaticText(self, -1, "Width: "),0,wx.ALIGN_CENTER)
51 self.sizer.Prepend(wx.Size(10,25)) 61 self.sizer.Prepend(wx.Size(10,25))
62 """
63
64 self.sizer.Add(wx.StaticText(self, -1, "Width: "),0, wx.ALIGN_CENTER)
65 self.sizer.Add(self.width, 0, wx.ALIGN_CENTER)
66 self.sizer.Add((6, 0))
67 self.sizer.Add(wx.StaticText(self, -1, "Height: "),0, wx.ALIGN_CENTER)
68 self.sizer.Add(self.height, 0, wx.ALIGN_CENTER)
69 self.sizer.Add((6, 0))
70 self.sizer.Add(self.apply_button, 0, wx.ALIGN_CENTER)
71 self.sizer.Add((6, 0))
72 self.sizer.Add(self.load_default, 0, wx.ALIGN_CENTER)
73
52 self.Bind(wx.EVT_BUTTON, self.on_apply, self.apply_button) 74 self.Bind(wx.EVT_BUTTON, self.on_apply, self.apply_button)
53 self.Bind(wx.EVT_BUTTON, self.on_load_default, self.load_default) 75 self.Bind(wx.EVT_BUTTON, self.on_load_default, self.load_default)
54 self.update_info() 76 self.update_info()
55 77
56 def update_info(self): 78 def update_info(self):