How to integrate SimpleGUI with Python 2.7 and 3.0 shell

前端 未结 7 1148
灰色年华
灰色年华 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:39

    Note: Steps is for windows

    The replacement for simplegui is SimpleGUICS2Pygame.

    Steps to install: -
    Step 1: Install Python 2.7 and Simpleguics2Pygame from : https://pypi.python.org/packages/source/S/SimpleGUICS2Pygame/SimpleGUICS2Pygame-01.08.00.tar.gz#md5=e4a18fe83e4a64c6222bfb71349be31e
    Step 2: Extract it to a location (Lets call it somewhere)
    Step 3: Open command prompt as administrator and change directory using the command
    cd somewhere/SimpleGUICS2Pygame-01.08.00.
    Step 4: Run the command setup.py install

    SimpleGUICS2Pygame is now installed and can now be accessed using the following code instead of import simplegui:

    try:
        import simplegui
    except ImportError:
        import SimpleGUICS2Pygame.simpleguics2pygame as simplegui
    

提交回复
热议问题