#!/usr/bin/env python
#-*-coding:UTF-8 -*-
import wx
if __name__=='__main__':
app=wx.PySimpleApp()
frame=wx.TextEntryDialog(None,"who is buried in Grant's tomb?",
'A Question','Cary Grant')
if frame.ShowModal()==wx.ID_OK:
response=frame.GetValue()
print response
app.MainLoop()
wxpython 2.7 文本输入对话框 TextEntryDialog
最新推荐文章于 2023-05-26 21:47:25 发布