我正在从coursera学习python。他们使用CodeSkulptor(http://www.codeskulptor.org/)作为集成开发环境。我想用Pycharm编写同样的程序。我不知道PyCharm(Python2.7)中内置的GUI包。我想转换下面的代码。请为我提供一些有用的URL/重要信息。
下面是我的代码:
# define event handlers for control panel
def foo():print "hello world!!!"
# create frame
f = simplegui.create_frame("Guess The Number",300,300)
f.add_button("Range [0,100)", foo, 150)
f.add_button("Range [0,1000)", foo, 150)
f.add_input("Enter a guess", foo, 150)发布于 2015-06-12 18:49:17
您可以在此处阅读文档
https://pypi.python.org/pypi/SimpleGUITk
而不是
import simplegui你应该使用
import simpleguitk as simplegui参考:How to integrate SimpleGUI with Python 2.7 and 3.0 shell
请同时检查此link
https://stackoverflow.com/questions/30798619
复制相似问题