1999-04-29 23:29:54 -04:00
|
|
|
|
|
|
|
from wxPython.wx import *
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
def runTest(frame, nb, log):
|
|
|
|
win = wxDialog(frame, -1, "This is a wxDialog", wxDefaultPosition, wxSize(350, 200))
|
|
|
|
|
|
|
|
wxStaticText(win, -1, "This is a wxDialog", wxPoint(20, 20))
|
|
|
|
wxButton(win, wxID_OK, " OK ", wxPoint(75, 120), wxDefaultSize).SetDefault()
|
1999-09-02 01:31:38 -04:00
|
|
|
wxButton(win, wxID_CANCEL, " Cancel ", wxPoint(200, 120), wxDefaultSize)
|
1999-04-29 23:29:54 -04:00
|
|
|
|
|
|
|
val = win.ShowModal()
|
|
|
|
if val == wxID_OK:
|
|
|
|
log.WriteText("You pressed OK\n")
|
|
|
|
else:
|
|
|
|
log.WriteText("You pressed Cancel\n")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
overview = """\
|
|
|
|
"""
|