]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxDialog.py
use Windows standard icons instead of our own (patch 443856)
[wxWidgets.git] / wxPython / demo / wxDialog.py
CommitLineData
cf694132
RD
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()
efc5f224 11 wxButton(win, wxID_CANCEL, " Cancel ", wxPoint(200, 120), wxDefaultSize)
cf694132
RD
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"""