self.List = self.GetListCtrl()
self.List.Bind(wx.EVT_TEXT_ENTER, self.OnExcludesChange)
self.List.Bind(wx.EVT_LIST_END_LABEL_EDIT, self.OnExcludesChange)
Jeremy Lowery wrote:
···
Toni Brkic wrote:
I think EVT_TEXT_ENTER is what you are looking for.
Thanks for the reply Toni. I'm a bit confused on which control to bind this to. I've tried:
ID_EXCLUDES = 120
self.excludes_ctrl = gizmos.EditableListBox(self, ID_EXCLUDES, "Exclude Patterns")
wx.EVT_TEXT_ENTER(self, ID_EXCLUDES, self.OnExcludesChange)and
wx.EVT_TEXT_ENTER(self, self.excludes_ctrl.GetListCtrl().GetId(), self.OnExcludesChange)
with OnExcludesChange as.
def OnExcludesChange(self, e):
print 'here'
print eHowever, it never gets called. What am I doing wrong here?
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org