]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxDialog.py
added missing destructor for Darwin/Mac OS X (wxGtk, wxMotif, wxMac)
[wxWidgets.git] / wxPython / demo / wxDialog.py
1
2 from wxPython.wx import *
3
4 #---------------------------------------------------------------------------
5
6 def runTest(frame, nb, log):
7 win = wxDialog(frame, -1, "This is a wxDialog", wxDefaultPosition, wxSize(350, 200))
8
9 wxStaticText(win, -1, "This is a wxDialog", wxPoint(20, 20))
10 wxButton(win, wxID_OK, " OK ", wxPoint(75, 120), wxDefaultSize).SetDefault()
11 wxButton(win, wxID_CANCEL, " Cancel ", wxPoint(200, 120), wxDefaultSize)
12
13 val = win.ShowModal()
14 if val == wxID_OK:
15 log.WriteText("You pressed OK\n")
16 else:
17 log.WriteText("You pressed Cancel\n")
18
19
20
21 #---------------------------------------------------------------------------
22
23
24
25
26
27
28
29
30
31
32 overview = """\
33 """