git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			12 lines
		
	
	
		
			341 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			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()
 |