equal
deleted
inserted
replaced
97 if not self.up: |
97 if not self.up: |
98 dw = dy = self.labelDelta |
98 dw = dy = self.labelDelta |
99 |
99 |
100 pos_x = (width-bw)/2+dw # adjust for bitmap and text to centre |
100 pos_x = (width-bw)/2+dw # adjust for bitmap and text to centre |
101 pos_y = (height-bh-th)/2+dy |
101 pos_y = (height-bh-th)/2+dy |
102 if bmp !=None: |
102 if bmp != None: |
103 dc.DrawBitmap(bmp, pos_x, pos_y, hasMask) # draw bitmap if available |
103 dc.DrawBitmap(bmp, pos_x, pos_y, hasMask) # draw bitmap if available |
104 pos_x = (width-tw)/2+dw # adjust for bitmap and text to centre |
104 pos_x = (width-tw)/2+dw # adjust for bitmap and text to centre |
105 pos_y += bh + 2 |
105 pos_y += bh + 2 |
106 |
106 |
107 dc.DrawText(label, pos_x, pos_y) # draw the text |
107 dc.DrawText(label, pos_x, pos_y) # draw the text |
294 |
294 |
295 self.ParamsEditorSizer.Layout() |
295 self.ParamsEditorSizer.Layout() |
296 self.Thaw() |
296 self.Thaw() |
297 |
297 |
298 def GenerateMethodButtonSizer(self): |
298 def GenerateMethodButtonSizer(self): |
299 normal_bt_font=wx.Font(faces["size"] / 3, wx.DEFAULT, wx.NORMAL, wx.NORMAL, faceName = faces["helv"]) |
299 normal_bt_font = wx.Font(faces["size"] / 3, wx.DEFAULT, wx.NORMAL, wx.NORMAL, faceName = faces["helv"]) |
300 mouseover_bt_font=wx.Font(faces["size"] / 3, wx.DEFAULT, wx.NORMAL, wx.NORMAL, underline=True, faceName = faces["helv"]) |
300 mouseover_bt_font = wx.Font(faces["size"] / 3, wx.DEFAULT, wx.NORMAL, wx.NORMAL, faceName = faces["helv"], underline=True) |
301 |
301 |
302 msizer = wx.BoxSizer(wx.HORIZONTAL) |
302 msizer = wx.BoxSizer(wx.HORIZONTAL) |
303 |
303 |
304 for confnode_method in self.Controler.ConfNodeMethods: |
304 for confnode_method in self.Controler.ConfNodeMethods: |
305 if "method" in confnode_method and confnode_method.get("shown", True): |
305 if "method" in confnode_method and confnode_method.get("shown", True): |