editors/ConfTreeNodeEditor.py
changeset 1315 ff14a66bbd12
parent 1282 f427352f9727
child 1451 94e620cbd9de
equal deleted inserted replaced
1314:822d483197ad 1315:ff14a66bbd12
   494         return OnButtonClick
   494         return OnButtonClick
   495     
   495     
   496     def GetChoiceCallBackFunction(self, choicectrl, path):
   496     def GetChoiceCallBackFunction(self, choicectrl, path):
   497         def OnChoiceChanged(event):
   497         def OnChoiceChanged(event):
   498             res = self.SetConfNodeParamsAttribute(path, choicectrl.GetStringSelection())
   498             res = self.SetConfNodeParamsAttribute(path, choicectrl.GetStringSelection())
       
   499             if res is None:
       
   500                 res = ""
   499             choicectrl.SetStringSelection(res)
   501             choicectrl.SetStringSelection(res)
   500             event.Skip()
   502             event.Skip()
   501         return OnChoiceChanged
   503         return OnChoiceChanged
   502     
   504     
   503     def GetChoiceContentCallBackFunction(self, choicectrl, staticboxsizer, path):
   505     def GetChoiceContentCallBackFunction(self, choicectrl, staticboxsizer, path):