Mercurial > traipse_dev
diff orpg/mapper/grid_handler.py @ 19:78407d627cba traipse_dev
Beginning of Code Clean-up. Some code untested, may break!
author | sirebral |
---|---|
date | Sat, 25 Jul 2009 17:24:40 -0500 |
parents | 0b8b7e3ed78d |
children | 072ffc1d466f |
line wrap: on
line diff
--- a/orpg/mapper/grid_handler.py Tue Jul 21 05:34:16 2009 -0500 +++ b/orpg/mapper/grid_handler.py Sat Jul 25 17:24:40 2009 -0500 @@ -44,20 +44,6 @@ self.apply_button = wx.Button(self, wx.ID_OK, "Apply", style=wx.BU_EXACTFIT) self.color_button.SetBackgroundColour(wx.BLACK) self.color_button.SetForegroundColour(wx.WHITE) - - """ - self.sizer.Add(wx.StaticText(self, -1, "Size: "), 0, wx.ALIGN_CENTER|wx.ALL, 3) - self.sizer.Add(self.grid_size, 0, wx.EXPAND|wx.ALL, 2) - self.sizer.Add(wx.StaticText(self, -1, "Ratio: "), 0, wx.ALIGN_CENTER|wx.ALL, 3) - self.sizer.Add(self.grid_ratio, 0, wx.EXPAND|wx.ALL, 2) - self.sizer.Add(self.line_type, 0, wx.EXPAND|wx.ALL, 3) - self.sizer.Add(self.grid_mode, 0, wx.EXPAND|wx.ALL, 2) - self.sizer.Add(self.grid_snap, 0, wx.EXPAND|wx.ALL, 3) - self.sizer.Add(self.color_button, 0, wx.EXPAND|wx.ALL, 2) - self.sizer.Add(self.apply_button, 0, wx.EXPAND|wx.ALL, 3) - self.sizer.Add(wx.Size(20,25),1) - """ - self.sizer.Add(wx.StaticText(self, -1, "Size: "), 0, wx.ALIGN_CENTER) self.sizer.Add(self.grid_size, 0, wx.ALIGN_CENTER) self.sizer.Add((6,0)) @@ -73,7 +59,6 @@ self.sizer.Add(self.color_button, 0, wx.ALIGN_CENTER) self.sizer.Add((6,0)) self.sizer.Add(self.apply_button, 0, wx.ALIGN_CENTER) - self.Bind(wx.EVT_BUTTON, self.on_bg_color, self.color_button) self.Bind(wx.EVT_BUTTON, self.on_apply, self.apply_button) self.update_info()