]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxTextEntryDialog.py
2 from wxPython
.wx
import *
4 #---------------------------------------------------------------------------
6 def runTest(frame
, nb
, log
):
7 dlg
= wxTextEntryDialog(frame
, 'What is your favorite programming language?',
9 dlg
.SetValue("Python is the best!")
10 if dlg
.ShowModal() == wxID_OK
:
11 log
.WriteText('You entered: %s\n' % dlg
.GetValue())
15 #---------------------------------------------------------------------------