]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/wxDialog.py
fixed clipping of items with icons text in report mode
[wxWidgets.git] / wxPython / demo / wxDialog.py
... / ...
CommitLineData
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
6def 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
32overview = """\
33"""