]> git.saurik.com Git - wxWidgets.git/blame - wxPython/tests/leave.py
Allow compiling when _WIN32_IE < 0x300
[wxWidgets.git] / wxPython / tests / leave.py
CommitLineData
f581a26d
RD
1from wxPython.wx import *
2
3class TestFrame(wxFrame):
4
5 def __init__(self):
6 wxFrame.__init__(self,NULL,-1,"Test Frame",wxPoint(200,200))
7 win = wxWindow(self, -1)
8 self.Show(true)
9 EVT_LEAVE_WINDOW(win, self.onLeave)
10 EVT_ENTER_WINDOW(win, self.onEnter)
11
12 def onLeave(self, event):
13 print("out")
14
15 def onEnter(self, event):
16 print('in')
17
18class MyApp(wxApp):
19
20 def OnInit(self):
21 self.mainFrame = TestFrame()
22 return true
23
24app = MyApp(0)
25app.MainLoop()
26