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