【发布时间】:2012-10-16 21:05:37
【问题描述】:
我刚开始学习 Python,在搞砸并创建了一个我想使用的程序之后,我想为它创建一个 GUI。我不知道如何开始,所以我只是查了一下,发现EasyGUI。
我可以正常工作,但如何将答案记录到变量中?
import easygui as eg
n=0
eg.integerbox(msg="What is the max integer in the Sequence, n?"
, title="blah blah blah"
, default=0
, lowerbound=0)
我想将问题的答案 What is the max integer in the Sequence, n? 设置为变量(对于本例,n)。
像n=output 之类的,但没有“输出”语法。
关于如何做到这一点的任何想法?
【问题讨论】: