Mercurial > traipse_dev
comparison orpg/mapper/whiteboard_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 | 4385a7d0efd1 |
children | 072ffc1d466f |
comparison
equal
deleted
inserted
replaced
18:67b900deb35c | 19:78407d627cba |
---|---|
65 self.drawmode_ctrl.SetSelection(0) #always start showing "Freeform" | 65 self.drawmode_ctrl.SetSelection(0) #always start showing "Freeform" |
66 self.radius = wx.TextCtrl(self, wx.ID_ANY, size=(32,-1) ) | 66 self.radius = wx.TextCtrl(self, wx.ID_ANY, size=(32,-1) ) |
67 self.radius.SetValue("15") | 67 self.radius.SetValue("15") |
68 self.live_refresh = wx.CheckBox(self, wx.ID_ANY, " Live Refresh") | 68 self.live_refresh = wx.CheckBox(self, wx.ID_ANY, " Live Refresh") |
69 self.live_refresh.SetValue(True) | 69 self.live_refresh.SetValue(True) |
70 self.widthList= wx.Choice(self, wx.ID_ANY, size= wx.Size(40, 20), choices=['1','2','3','4','5','6','7','8','9','10']) | 70 self.widthList= wx.Choice(self, wx.ID_ANY, size= wx.Size(40, 20), |
71 choices=['1','2','3','4','5','6','7','8','9','10']) | |
71 self.widthList.SetSelection(0) #always start showing "1" | 72 self.widthList.SetSelection(0) #always start showing "1" |
72 self.sizer.Add(wx.StaticText(self, wx.ID_ANY, "Line Width: "),0,wx.ALIGN_CENTER) | 73 self.sizer.Add(wx.StaticText(self, wx.ID_ANY, "Line Width: "),0,wx.ALIGN_CENTER) |
73 self.sizer.Add(self.widthList, 0, wx.EXPAND) | 74 self.sizer.Add(self.widthList, 0, wx.EXPAND) |
74 self.sizer.Add(wx.Size(10,25)) | 75 self.sizer.Add(wx.Size(10,25)) |
75 self.sizer.Add(wx.StaticText(self, wx.ID_ANY, "Drawing Mode: "),0,wx.ALIGN_CENTER) | 76 self.sizer.Add(wx.StaticText(self, wx.ID_ANY, "Drawing Mode: "),0,wx.ALIGN_CENTER) |
101 self.txt_boxer.Add(self.txt_static,0,wx.EXPAND) | 102 self.txt_boxer.Add(self.txt_static,0,wx.EXPAND) |
102 self.txt_boxer.Add(wx.Size(10,10)) | 103 self.txt_boxer.Add(wx.Size(10,10)) |
103 self.txt_boxer.Add(self.text_control,1,wx.EXPAND) | 104 self.txt_boxer.Add(self.text_control,1,wx.EXPAND) |
104 self.point_boxer = wx.BoxSizer(wx.HORIZONTAL) | 105 self.point_boxer = wx.BoxSizer(wx.HORIZONTAL) |
105 self.point_static = wx.StaticText(self.text_properties_dialog, -1, "Text Size: ") | 106 self.point_static = wx.StaticText(self.text_properties_dialog, -1, "Text Size: ") |
106 self.point_control = wx.SpinCtrl(self.text_properties_dialog, wx.ID_ANY, value = "12",min = 1, initial = 12, name = "Font Size: ") | 107 self.point_control = wx.SpinCtrl(self.text_properties_dialog, wx.ID_ANY, value = "12", |
108 min = 1, initial = 12, name = "Font Size: ") | |
107 self.point_boxer.Add(self.point_static,1,wx.EXPAND) | 109 self.point_boxer.Add(self.point_static,1,wx.EXPAND) |
108 self.point_boxer.Add(wx.Size(10,10)) | 110 self.point_boxer.Add(wx.Size(10,10)) |
109 self.point_boxer.Add(self.point_control,0,wx.EXPAND) | 111 self.point_boxer.Add(self.point_control,0,wx.EXPAND) |
110 self.text_color_control = wx.Button(self.text_properties_dialog, wx.ID_ANY, "TEXT COLOR",style=wx.BU_EXACTFIT) | 112 self.text_color_control = wx.Button(self.text_properties_dialog, wx.ID_ANY, "TEXT COLOR",style=wx.BU_EXACTFIT) |
111 self.weight_control = wx.RadioBox(self.text_properties_dialog, wx.ID_ANY, "Weight", choices = ["Normal","Bold"]) | 113 self.weight_control = wx.RadioBox(self.text_properties_dialog, wx.ID_ANY, "Weight", choices = ["Normal","Bold"]) |