How to integrate SimpleGUI with Python 2.7 and 3.0 shell

前端 未结 7 1165
灰色年华
灰色年华 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条回答
  •  旧时难觅i
    2020-12-08 05:58

    I just installed simpleguitk to enable simplegui on my os. I am using linuxmint 15. Steps are:

    First download simpleguitk from this link simpleguitk. In order to work with simplegui perfectly you have to install these packages

    Pillow in order to use images.
    Pygame for sound support
    matplotlib for SimplePlot support.

    1. You can install Pygame by suing this command :

       sudo apt-get install python-pygame
      
    2. You can install matplotlib by using this command :

      sudo apt-get install python-matplotlib
      
    3. To install Pillow , download zip file from this link Pillow

      Unzip it and change directory to Pillow. Then use this command
      python setup.py install (assuming you've already installed python.h or you can install it using

      sudo apt-get install python.h
      
    4. Finally you have to install simpleguitk . Before installing it i suggest you to install this module setuptools.

      you can install setuptools using this command :

      sudo apt-get install python-setuptools
      

      Now Extract simpleguitk on your home directory. Then change directory to simpleguitk folder.

      After that use this command :

      python setup.py install
      

    Type python on terminal

    Import simpleguitk as simplegui

提交回复
热议问题