How to integrate SimpleGUI with Python 2.7 and 3.0 shell

前端 未结 7 1159
灰色年华
灰色年华 2020-12-08 05:19

I am learning Python from Coursera. In this course they use SimpleGUI module on CodeSkulptor. Can anyone tell me how to integrate SimpleGUI with python 2.7

7条回答
  •  鱼传尺愫
    2020-12-08 05:51

    SimpleGUITk can be used in Python 3.

    The Problem is simplegui.py

    Just install SimpleGUITk as described in the README of the package.

    Then modify the simplegui.py file in the python33 folder with an text-editor.

    In the file are some calls for Tkinter. Just replace Tkinter with tkinter and everything is fine and the example in the readme runs without errors.

    (I also make a Coursera course. But the SimpleGUI module is not the simplegui used in CodeSkulptor. Sorry, so you can't write programs for CodeSkulptor in IDLE with this lib)

提交回复
热议问题