log IsEditCancelled too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -128,7 +128,8 @@ class TestTreeCtrlPanel(wx.Panel):
|
|||||||
|
|
||||||
|
|
||||||
def OnEndEdit(self, event):
|
def OnEndEdit(self, event):
|
||||||
self.log.WriteText("OnEndEdit\n")
|
self.log.WriteText("OnEndEdit: %s %s\n" %
|
||||||
|
(event.IsEditCancelled(), event.GetLabel()) )
|
||||||
# show how to reject edit, we'll not allow any digits
|
# show how to reject edit, we'll not allow any digits
|
||||||
for x in event.GetLabel():
|
for x in event.GetLabel():
|
||||||
if x in string.digits:
|
if x in string.digits:
|
||||||
|
Reference in New Issue
Block a user