]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxDialog.py
2 from wxPython
.wx
import *
4 #---------------------------------------------------------------------------
6 def runTest(frame
, nb
, log
):
7 win
= wxDialog(frame
, -1, "This is a wxDialog", wxDefaultPosition
, wxSize(350, 200))
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
)
15 log
.WriteText("You pressed OK\n")
17 log
.WriteText("You pressed Cancel\n")
21 #---------------------------------------------------------------------------