]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxMiniFrame.py
fixed wxWindow::SetCursor( wxNullCursor) for mac
[wxWidgets.git] / wxPython / demo / wxMiniFrame.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5class 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)
f6bcfd97 13 EVT_CLOSE(self, self.OnCloseWindow)
cf694132
RD
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 = MyMiniFrame(frame, -1, "This is a wxMiniFrame",
25 wxDefaultPosition, wxSize(200, 200),
26 wxDEFAULT_FRAME_STYLE | wxTINY_CAPTION_HORIZ)
27 frame.otherWin = win
28 win.Show(true)
29
30
31#---------------------------------------------------------------------------
32
33
34
35
36
37
38
39
40
41
42overview = """\
43"""