A couple fixes for the demo, and some code to show a bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-07-28 03:06:02 +00:00
parent afc2b641d3
commit 2f9be7879e
3 changed files with 12 additions and 1 deletions

View File

@@ -4,6 +4,13 @@ from wxPython.wx import *
#---------------------------------------------------------------------------
class TestPanel(wxPanel):
def OnSetFocus(self, evt):
print "OnSetFocus"
evt.Skip()
def OnKillFocus(self, evt):
print "OnKillFocus"
evt.Skip()
def __init__(self, parent, log):
wxPanel.__init__(self, parent, -1)
self.log = log
@@ -13,6 +20,8 @@ class TestPanel(wxPanel):
t1.SetInsertionPoint(0)
EVT_TEXT(self, 10, self.EvtText)
EVT_CHAR(t1, self.EvtChar)
EVT_SET_FOCUS(t1, self.OnSetFocus)
EVT_KILL_FOCUS(t1, self.OnKillFocus)
l2 = wxStaticText(self, -1, "Passsword")