【发布时间】:2013-02-23 05:22:20
【问题描述】:
大家好,尝试了一切,现在我正在征求您的建议。
我无法隐藏我的消息框。
代码是:
ans = wx.MessageBox("length = %s , height = %s " % (str(len), str(ht)))
if ans = wx.Yes:
subprocess.call("pword | sudo -S ./Install.sh %s %s" % (str(len),str(ht)))
第 3 行大约需要 6-7 分钟才能完成。直到那个时候消息框会出现在屏幕上,我想让它隐藏起来,直到安装过程完成。 我试过隐藏,未来调用,关闭,禁用..但每次我得到'int对象没有属性“”。
【问题讨论】:
标签: python wxpython subprocess wxwidgets