]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-09/text_box.py
pixbuf cursor support is for GTK 2.4.
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-09 / text_box.py
1 import wx
2
3 if __name__ == "__main__":
4 app = wx.PySimpleApp()
5 dialog = wx.TextEntryDialog(None,
6 "What kind of text would you like to enter?",
7 "Text Entry", "Default Value", style=wx.OK|wx.CANCEL)
8 if dialog.ShowModal() == wx.ID_OK:
9 print "You entered: %s" % dialog.GetValue()
10
11 dialog.Destroy()