1999-04-30 03:29:54 +00:00
|
|
|
|
|
|
|
from wxPython.wx import *
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
def runTest(frame, nb, log):
|
|
|
|
dlg = wxTextEntryDialog(frame, 'What is your favorite programming language?',
|
|
|
|
'Duh??', 'Python')
|
2002-02-21 00:50:27 +00:00
|
|
|
dlg.SetValue("Python is the best!")
|
1999-04-30 03:29:54 +00:00
|
|
|
if dlg.ShowModal() == wxID_OK:
|
|
|
|
log.WriteText('You entered: %s\n' % dlg.GetValue())
|
|
|
|
dlg.Destroy()
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-07-02 23:13:10 +00:00
|
|
|
overview = """\
|
1999-04-30 03:29:54 +00:00
|
|
|
|
2003-07-02 23:13:10 +00:00
|
|
|
"""
|
1999-04-30 03:29:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-07-02 23:13:10 +00:00
|
|
|
if __name__ == '__main__':
|
|
|
|
import sys,os
|
|
|
|
import run
|
|
|
|
run.main(['', os.path.basename(sys.argv[0])])
|