comparison orpg/mapper/grid_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
42 self.grid_ratio = wx.TextCtrl(self, wx.ID_ANY, size=(32,-1) ) 42 self.grid_ratio = wx.TextCtrl(self, wx.ID_ANY, size=(32,-1) )
43 self.color_button = wx.Button(self, wx.ID_ANY, "Color", style=wx.BU_EXACTFIT) 43 self.color_button = wx.Button(self, wx.ID_ANY, "Color", style=wx.BU_EXACTFIT)
44 self.apply_button = wx.Button(self, wx.ID_OK, "Apply", style=wx.BU_EXACTFIT) 44 self.apply_button = wx.Button(self, wx.ID_OK, "Apply", style=wx.BU_EXACTFIT)
45 self.color_button.SetBackgroundColour(wx.BLACK) 45 self.color_button.SetBackgroundColour(wx.BLACK)
46 self.color_button.SetForegroundColour(wx.WHITE) 46 self.color_button.SetForegroundColour(wx.WHITE)
47
48 """
47 self.sizer.Add(wx.StaticText(self, -1, "Size: "), 0, wx.ALIGN_CENTER|wx.ALL, 3) 49 self.sizer.Add(wx.StaticText(self, -1, "Size: "), 0, wx.ALIGN_CENTER|wx.ALL, 3)
48 self.sizer.Add(self.grid_size, 0, wx.EXPAND|wx.ALL, 2) 50 self.sizer.Add(self.grid_size, 0, wx.EXPAND|wx.ALL, 2)
49 self.sizer.Add(wx.StaticText(self, -1, "Ratio: "), 0, wx.ALIGN_CENTER|wx.ALL, 3) 51 self.sizer.Add(wx.StaticText(self, -1, "Ratio: "), 0, wx.ALIGN_CENTER|wx.ALL, 3)
50 self.sizer.Add(self.grid_ratio, 0, wx.EXPAND|wx.ALL, 2) 52 self.sizer.Add(self.grid_ratio, 0, wx.EXPAND|wx.ALL, 2)
51 self.sizer.Add(self.line_type, 0, wx.EXPAND|wx.ALL, 3) 53 self.sizer.Add(self.line_type, 0, wx.EXPAND|wx.ALL, 3)
52 self.sizer.Add(self.grid_mode, 0, wx.EXPAND|wx.ALL, 2) 54 self.sizer.Add(self.grid_mode, 0, wx.EXPAND|wx.ALL, 2)
53 self.sizer.Add(self.grid_snap, 0, wx.EXPAND|wx.ALL, 3) 55 self.sizer.Add(self.grid_snap, 0, wx.EXPAND|wx.ALL, 3)
54 self.sizer.Add(self.color_button, 0, wx.EXPAND|wx.ALL, 2) 56 self.sizer.Add(self.color_button, 0, wx.EXPAND|wx.ALL, 2)
55 self.sizer.Add(self.apply_button, 0, wx.EXPAND|wx.ALL, 3) 57 self.sizer.Add(self.apply_button, 0, wx.EXPAND|wx.ALL, 3)
56 self.sizer.Add(wx.Size(20,25),1) 58 self.sizer.Add(wx.Size(20,25),1)
59 """
60
61 self.sizer.Add(wx.StaticText(self, -1, "Size: "), 0, wx.ALIGN_CENTER)
62 self.sizer.Add(self.grid_size, 0, wx.ALIGN_CENTER)
63 self.sizer.Add((6,0))
64 self.sizer.Add(wx.StaticText(self, -1, "Ratio: "), 0, wx.ALIGN_CENTER)
65 self.sizer.Add(self.grid_ratio, 0, wx.ALIGN_CENTER)
66 self.sizer.Add((6,0))
67 self.sizer.Add(self.line_type, 0, wx.ALIGN_CENTER)
68 self.sizer.Add((6,0))
69 self.sizer.Add(self.grid_mode, 0, wx.ALIGN_CENTER)
70 self.sizer.Add((6,0))
71 self.sizer.Add(self.grid_snap, 0, wx.ALIGN_CENTER)
72 self.sizer.Add((6,0))
73 self.sizer.Add(self.color_button, 0, wx.ALIGN_CENTER)
74 self.sizer.Add((6,0))
75 self.sizer.Add(self.apply_button, 0, wx.ALIGN_CENTER)
76
57 self.Bind(wx.EVT_BUTTON, self.on_bg_color, self.color_button) 77 self.Bind(wx.EVT_BUTTON, self.on_bg_color, self.color_button)
58 self.Bind(wx.EVT_BUTTON, self.on_apply, self.apply_button) 78 self.Bind(wx.EVT_BUTTON, self.on_apply, self.apply_button)
59 self.update_info() 79 self.update_info()
60 80
61 def update_info(self): 81 def update_info(self):