wxWidgets/wxPython/samples/wxPIA_book/Chapter-09/text_box.py
2006-11-01 22:36:23 +00:00

12 lines
341 B
Python

import wx
if __name__ == "__main__":
app = wx.PySimpleApp()
dialog = wx.TextEntryDialog(None,
"What kind of text would you like to enter?",
"Text Entry", "Default Value", style=wx.OK|wx.CANCEL)
if dialog.ShowModal() == wx.ID_OK:
print "You entered: %s" % dialog.GetValue()
dialog.Destroy()