TextEntryDialog with default value : TextEntryDialog : WxPython PYTHON TUTORIALS


PYTHON TUTORIALS » WxPython » TextEntryDialog »

 

TextEntryDialog with default value


TextEntryDialog with default value
import wx

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()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo WxPython
» TextEntryDialog