]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/demo/wxFrame.py
jconfig.h uses configures results
[wxWidgets.git] / utils / wxPython / demo / wxFrame.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
6class MyFrame(wxFrame):
7 def __init__(self, parent, ID, title, pos, size):
8 wxFrame.__init__(self, parent, ID, title, pos, size)
9 panel = wxPanel(self, -1)
10
11 button = wxButton(panel, 1003, "Close Me")
12 button.SetPosition(wxPoint(15, 15))
13 EVT_BUTTON(self, 1003, self.OnCloseMe)
14
15 def OnCloseMe(self, event):
16 self.Close(true)
17
18 def OnCloseWindow(self, event):
19 self.Destroy()
20
21#---------------------------------------------------------------------------
22
23def runTest(frame, nb, log):
24 win = MyFrame(frame, -1, "This is a wxFrame", wxDefaultPosition, wxSize(350, 200))
25 frame.otherWin = win
26 win.Show(true)
27
28
29#---------------------------------------------------------------------------
30
31
32
33
34
35
36
37
38
39
40overview = """\
41"""