]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxTextEntryDialog.py
mention ShouldInheritColours() change
[wxWidgets.git] / wxPython / demo / wxTextEntryDialog.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
6def runTest(frame, nb, log):
7 dlg = wxTextEntryDialog(frame, 'What is your favorite programming language?',
8 'Duh??', 'Python')
a1bfae9d 9 dlg.SetValue("Python is the best!")
cf694132
RD
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
1fded56b 20overview = """\
cf694132 21
1fded56b 22"""
cf694132
RD
23
24
25
26
27
1fded56b
RD
28if __name__ == '__main__':
29 import sys,os
30 import run
31 run.main(['', os.path.basename(sys.argv[0])])