comparison orpg/mapper/map_prop_dialog.py @ 71:449a8900f9ac ornery-dev

Code refining almost completed, for this round. Some included files are still in need of some clean up, but this is test worthy.
author sirebral
date Thu, 20 Aug 2009 03:00:39 -0500
parents 072ffc1d466f
children dcae32e219f1
comparison
equal deleted inserted replaced
70:52a5fa913008 71:449a8900f9ac
199 dlg = wx.ColourDialog(self, data) 199 dlg = wx.ColourDialog(self, data)
200 if dlg.ShowModal() == wx.ID_OK: 200 if dlg.ShowModal() == wx.ID_OK:
201 data = dlg.GetColourData() 201 data = dlg.GetColourData()
202 self.ctrls[CTRL_GRID_COLOR].SetBackgroundColour(data.GetColour()) 202 self.ctrls[CTRL_GRID_COLOR].SetBackgroundColour(data.GetColour())
203 dlg.Destroy() 203 dlg.Destroy()
204
204 def on_ok(self,evt): 205 def on_ok(self,evt):
205 try: self.size = (int(self.ctrls[CTRL_WIDTH].GetValue()),int(self.ctrls[CTRL_HEIGHT].GetValue())) 206 try: self.size = (int(self.ctrls[CTRL_WIDTH].GetValue()),int(self.ctrls[CTRL_HEIGHT].GetValue()))
206 except: pass 207 except: pass
207 if self.ctrls[CTRL_BG_COLOR].GetValue() == True: 208 if self.ctrls[CTRL_BG_COLOR].GetValue() == True:
208 self.bg_layer.set_color(self.ctrls[CTRL_BG_COLOR_VALUE].GetBackgroundColour()) 209 self.bg_layer.set_color(self.ctrls[CTRL_BG_COLOR_VALUE].GetBackgroundColour())