1999-04-29 23:29:54 -04:00
|
|
|
|
|
|
|
from wxPython.wx import *
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
def runTest(frame, nb, log):
|
|
|
|
dlg = wxTextEntryDialog(frame, 'What is your favorite programming language?',
|
|
|
|
'Duh??', 'Python')
|
2002-02-20 19:50:27 -05:00
|
|
|
dlg.SetValue("Python is the best!")
|
1999-04-29 23:29:54 -04:00
|
|
|
if dlg.ShowModal() == wxID_OK:
|
|
|
|
log.WriteText('You entered: %s\n' % dlg.GetValue())
|
|
|
|
dlg.Destroy()
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
overview = """\
|
|
|
|
|
|
|
|
"""
|