use TextEntryDialog : TextEntryDialog : WxPython PYTHON TUTORIALS


PYTHON TUTORIALS » WxPython » TextEntryDialog »

 

use TextEntryDialog


import wx
import images    

class App(wx.App):
    def __init__(self, redirect=True, filename=None):
        wx.App.__init__(self, redirect, filename)
    
    def OnInit(self):
        dlg = wx.TextEntryDialog(None, "Who is buried in Grant's tomb?",'A Question', 'Cary Grant')
        if dlg.ShowModal() == wx.ID_OK:
            response = dlg.GetValue()
        dlg.Destroy()

        return True

app = App(False, "output")
fred = app.MainLoop()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo WxPython
» TextEntryDialog