*** combotreebox.orig.py 2008-05-02 20:53:35.000000000 +0200 --- combotreebox.py 2008-05-02 20:54:28.000000000 +0200 *************** *** 35,44 **** workaround. Author: Frank Niessink ! Copyright 2006, Frank Niessink License: wxWidgets license ! Version: 0.9 ! Date: September 6, 2006 """ import wx --- 35,44 ---- workaround. Author: Frank Niessink ! Copyright 2006, 2008, Frank Niessink License: wxWidgets license ! Version: 1.0 ! Date: May 2, 2008 """ import wx *************** *** 362,373 **** def OnText(self, event): event.Skip() ! item = self.FindString(self._text.GetValue()) ! if item: ! if self._tree.GetSelection() != item: self._tree.SelectItem(item) ! else: ! self._tree.Unselect() # Methods called by the PopupFrame, to let the ComboTreeBox know # about what the user did. --- 362,377 ---- def OnText(self, event): event.Skip() ! textValue = self._text.GetValue() ! selection = self._tree.GetSelection() ! if not selection or self._tree.GetItemText(selection) != textValue: ! # We need to change the selection because it doesn't match the ! # text just entered ! item = self.FindString(textValue) ! if item: self._tree.SelectItem(item) ! else: ! self._tree.Unselect() # Methods called by the PopupFrame, to let the ComboTreeBox know # about what the user did.