editors/ConfTreeNodeEditor.py
changeset 1998 12b20698e4f3
parent 1991 34a9287b6c7d
child 2001 bcbd41efd846
equal deleted inserted replaced
1997:d9e8fb47340f 1998:12b20698e4f3
   487                         boxsizer.AddWindow(textctrl)
   487                         boxsizer.AddWindow(textctrl)
   488                         if element_infos["value"] is not None:
   488                         if element_infos["value"] is not None:
   489                             textctrl.ChangeValue(str(element_infos["value"]))
   489                             textctrl.ChangeValue(str(element_infos["value"]))
   490                         callback = self.GetTextCtrlCallBackFunction(textctrl, element_path)
   490                         callback = self.GetTextCtrlCallBackFunction(textctrl, element_path)
   491                         textctrl.Bind(wx.EVT_TEXT_ENTER, callback)
   491                         textctrl.Bind(wx.EVT_TEXT_ENTER, callback)
       
   492                         textctrl.Bind(wx.EVT_TEXT, callback)
   492                         textctrl.Bind(wx.EVT_KILL_FOCUS, callback)
   493                         textctrl.Bind(wx.EVT_KILL_FOCUS, callback)
   493             first = False
   494             first = False
   494         sizer.Layout()
   495         sizer.Layout()
   495         self.RefreshScrollbars()
   496         self.RefreshScrollbars()
   496 
   497