]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxTextEntryDialog.py
corrections to dynamic loading for Darwin
[wxWidgets.git] / wxPython / demo / wxTextEntryDialog.py
1
2 from wxPython.wx import *
3
4 #---------------------------------------------------------------------------
5
6 def runTest(frame, nb, log):
7 dlg = wxTextEntryDialog(frame, 'What is your favorite programming language?',
8 'Duh??', 'Python')
9 dlg.SetValue("Python is the best!") #### this doesn't work?
10 if dlg.ShowModal() == wxID_OK:
11 log.WriteText('You entered: %s\n' % dlg.GetValue())
12 dlg.Destroy()
13
14
15 #---------------------------------------------------------------------------
16
17
18
19
20
21
22
23
24
25
26
27
28 overview = """\
29
30 """