Simpleguics2pygame Alternative Simplegui_ experience sharing

Source: Internet
Author: User


Simplegui:
Simplegui is not a standard Python module. It is an open source project in Codeskulptor, a module that provides GUI support.
Codeskulptor is based on JavaScript, which can translate Python programs so that they run directly in the browser. Rice University in Coursera
The Python Basic course is provided using the Codeskulptor platform for teaching, students are free to write on the Codeskulptor,
Store and share Python programs. In order to be able to use Simplegui locally, we need to replace the Simplegui with Simpleguics2pygame.

The Codeskulptor platform needs to be turned over, and in order to be able to run the Simplegui example in the course locally, many methods have been found because the cmd command
Do not know, to try a variety of methods, and then review the information of the parties finally successfully installed Simpleguics2pygame. Probably have other friends because
For this matter and headache, therefore will own actual operation process to write down, hoped can play certain help.
——————————————————————————————————————————
All installation packages are 32-bit versions (uploaded to Download Center), 64-bit can be downloaded from the link address below.

WIN10 installation of Simpleguics2pygame experience(The following is the individual operation process, the reader may adjust according to oneself situation slightly)

First,Go to Windows\System32 and run as Administrator cmd.exe

cd///Return to the root directory
G://Enter the directory where you need to install files

Step One:Install PIP, (python27.x version above with Pip, in the python\scripts directory, do not install one of the self)

c:\Python27\Python-m pip install-u pip//upgrade Pip
C:\Python27\Scripts\pip install-u setuptools//Installation Setuptools
Make sure the above two steps are complete and go to the next step

Step Two:Installing Pygame

C:\Python27\Python PYGAME-1.9.2A0-CP27-NONE-WIN32.WHL//install in Pygame directory

Step Three:Installing Matplotlib,windows under Matplotlib also requires adding setuptools, NumPy, Python-dateutil,
Pytz, Pyparsing and six module (Setuptools has been installed in step one, other module I was in accordance with the following
installed, the reader can also be installed according to the above-mentioned method)

EXE format for direct execution of installation
The WHL format is installed by entering the following command sequentially:
C:\Python27\Scripts\pip Install SIX-1.9.0-PY2.PY3-NONE-ANY.WHL

Unzip the Msvcp71.dll and drag the others to the C:\Windows\System32 directory. (Some systems are not required)

Final installation Matplotlib

Test Matplotlib for successful installation after all module installation is complete
C:\Python27\Python
>> Import Matplotlib
>>exit ()

Step Four:Unzip the Simpleguics2pygame, locate the simpleguics2pygame_check.py file and execute

C:\Python27\Python simpleguics2pygame_check.py//Check simpleguics2pygame required Modele is complete

Step Five:Installing Simpleguics2pygame

C:\PYTHON27\SCRIPTS\PIP Install Simpleguics2pygame//Installation
C:\Python27\Scripts\pip Install Simpleguics2pygame--upgrade//Check for updates

Step Six:Write a small program to try (Pro-Test in Pycharm under the successful execution)

Import Simpleguics2pygame.simpleguics2pygame as Simplegui

# Event Handler
def tick ():
print "Tick"

# Register Handler
Timer = Simplegui.create_timer (tick)

# Start Timer
Timer.start ()

Reference Links:

http://blog.csdn.net/slowlight93/article/details/39625055//simpleguics2pygame Installation Steps
https://pypi.python.org/pypi/SimpleGUICS2Pygame///simpleguics2pygame
http://matplotlib.org/users/installing.html//matplotlib Official website, the required modele can be found here

This article from "Not Daze" blog, please make sure to keep this source http://tobeys.blog.51cto.com/10620284/1697936

Simpleguics2pygame Alternative Simplegui_ experience sharing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.