equal
deleted
inserted
replaced
313 if confnode_method.get("push", False): |
313 if confnode_method.get("push", False): |
314 button.Bind(wx.EVT_LEFT_DOWN, self.GetButtonCallBackFunction(confnode_method["method"], True)) |
314 button.Bind(wx.EVT_LEFT_DOWN, self.GetButtonCallBackFunction(confnode_method["method"], True)) |
315 else: |
315 else: |
316 button.Bind(wx.EVT_BUTTON, self.GetButtonCallBackFunction(confnode_method["method"]), button) |
316 button.Bind(wx.EVT_BUTTON, self.GetButtonCallBackFunction(confnode_method["method"]), button) |
317 # a fancy underline on mouseover |
317 # a fancy underline on mouseover |
|
318 |
318 def setFontStyle(b, s): |
319 def setFontStyle(b, s): |
319 def fn(event): |
320 def fn(event): |
320 b.SetFont(s) |
321 b.SetFont(s) |
321 b.Refresh() |
322 b.Refresh() |
322 event.Skip() |
323 event.Skip() |
548 event.Skip() |
549 event.Skip() |
549 return OnCheckBoxChanged |
550 return OnCheckBoxChanged |
550 |
551 |
551 def GetBrowseCallBackFunction(self, name, textctrl, library, value_infos, path): |
552 def GetBrowseCallBackFunction(self, name, textctrl, library, value_infos, path): |
552 infos = [value_infos] |
553 infos = [value_infos] |
|
554 |
553 def OnBrowseButton(event): |
555 def OnBrowseButton(event): |
554 dialog = BrowseValuesLibraryDialog(self, name, library, infos[0]) |
556 dialog = BrowseValuesLibraryDialog(self, name, library, infos[0]) |
555 if dialog.ShowModal() == wx.ID_OK: |
557 if dialog.ShowModal() == wx.ID_OK: |
556 value, value_infos = self.SetConfNodeParamsAttribute(path, dialog.GetValueInfos()) |
558 value, value_infos = self.SetConfNodeParamsAttribute(path, dialog.GetValueInfos()) |
557 textctrl.ChangeValue(value) |
559 textctrl.ChangeValue(value) |