X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00b6c4e33bdb2fcc1b56d429653963182608674b..eedf876b34d35c4a2b86cff70278043f89dab605:/wxPython/demo/wxTextCtrl.py diff --git a/wxPython/demo/wxTextCtrl.py b/wxPython/demo/wxTextCtrl.py index 16bcbe1c78..05f518ee15 100644 --- a/wxPython/demo/wxTextCtrl.py +++ b/wxPython/demo/wxTextCtrl.py @@ -10,6 +10,10 @@ class TestPanel(wxPanel): def OnKillFocus(self, evt): print "OnKillFocus" evt.Skip() + def OnWindowDestroy(self, evt): + print "OnWindowDestroy" + evt.Skip() + def __init__(self, parent, log): wxPanel.__init__(self, parent, -1) @@ -22,6 +26,7 @@ class TestPanel(wxPanel): EVT_CHAR(t1, self.EvtChar) EVT_SET_FOCUS(t1, self.OnSetFocus) EVT_KILL_FOCUS(t1, self.OnKillFocus) + EVT_WINDOW_DESTROY(t1, self.OnWindowDestroy) l2 = wxStaticText(self, -1, "Passsword") t2 = wxTextCtrl(self, 20, "", size=(125, -1), style=wxTE_PASSWORD)