]> git.saurik.com Git - wxWidgets.git/blob - wxPython/tests/leave.py
support Show() in wxFlexGridSizer (patch 737850)
[wxWidgets.git] / wxPython / tests / leave.py
1 from wxPython.wx import *
2
3 class 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
18 class MyApp(wxApp):
19
20 def OnInit(self):
21 self.mainFrame = TestFrame()
22 return true
23
24 app = MyApp(0)
25 app.MainLoop()
26