Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Primarily a standard Python module reimplementing the SimpleGUI particular module of CodeSkulptor (a browser Python interpreter).

Project Description

It is primarily a standard Python (2 and 3) module reimplementing the SimpleGUI particular module of CodeSkulptor (a browser Python interpreter).

Simply change

import simplegui

by

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

in your CodeSkulptor program and your program run both in CodeSkulptor and standard Python with this module (and Pygame).

Online HTML documentation on Read The Docs. (You can also use the online SimpleGUI documentation on CodeSkulptor.) Read Compatibility and Tips sections.

Installation

If pip is installed on your platform you can do:

>>> pip install SimpleGUICS2Pygame

(If several Python implementations are installed, maybe you must use something like pip2 or pip3 instead pip command.)

Without pip, download the archive SimpleGUICS2Pygame-?.tar.gz, unzip it somewhere. Next in the somewhere/SimpleGUICS2Pygame-?/ subdirectory run:

>>> python setup.py install

In both cases, you must use admin access. So with Linux you will probably do:

>>> sudo [your command]

Module simpleplot require matplotlib (and must be installed separately).

Modules simplegui_lib (and its submodules) and simpleguics2pygame (except for the Timer class) require Pygame (and must be installed separately).

You can run the little script SimpleGUICS2Pygame_check.py to check if required modules are installed.

On Window$

See Complete installation on Window$ in few steps.

Examples of CodeSkulptor and SimpleGUICS2Pygame use

You can see examples in SimpleGUICS2Pygame/example/ subdirectory from the sources archives.

Or online: Python programs running in CodeSkulptor .

Author

If you are happy with this free and free project you can support me financially by donating on my PayPal account or with Flattr.
Go to the link

License: GPLv3

Copyright (C) 2013, 2014, 2015 Olivier Pirson

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Note that

  • SimpleGUITk is an other implementation, using Tkinter and some others packages. It is really less complete and not updated. However it works for some programs.
  • simplegui is a Python package which has the same name as SimpleGUI of CodeSkulptor, but it is totally something else.

Changes

  • May 14, 2015
    • Added example/stop_example.py.
    • Corrected test/test_sound.py.
    • Updated documentation.
    • Updated media and CodeSkulptor programs links.
  • 01.09.00 — January 1st, 2015
    • Added ``_load_local_image()`` and ``_load_local_sound()`` functions.
    • Added test/test_sound.py.
    • Updated test/test_dir.py.
    • Updated test/test_image.py.
    • Added --fps n option.
    • Added Donate button in _draw_about() panel.
  • 01.08.01 — October 9, 2014
    • Added information when pygame is not installed.
    • Corrected local filename bug in _load_media(). (Thanks to Sergey Sorokin.)
    • Updated documentation.
  • 01.08.00 — October 4, 2014
    • Added alternative grey colors.
    • Added HSL and HSLA colors format.
    • Added test/test_colors_html_hsla.py.
    • Updated CodeSkulptor programs links.
    • Updated codeskulptor_lib.
    • Updated test/test_colors_html_rgba.py.
    • Updated media links.
  • 01.07.00 — September 2, 2014
    • Added plot_scatter() function in simpleplot module.
    • Added test/test_simpleplot_scatter.py.
    • Updated test/test_dir.py.
    • Updated documentation.
    • Updated CodeSkulptor programs links.
  • 01.06.03 — July 24, 2014
    • Implemented width parameter in add_label().
    • Added test/test_button_label.py.
  • 01.06.02 — July 18, 2014

Complete changelog

Release History

Release History

This version
History Node

01.09.00

History Node

01.08.01

History Node

01.08.00

History Node

01.07.00

History Node

01.06.03

History Node

01.06.02

History Node

01.06.00

History Node

01.05.00

History Node

01.04.00

History Node

01.03.00

History Node

01.02.00

History Node

01.01.00

History Node

01.00.02

History Node

01.00.00

History Node

00.92.00

History Node

00.91.00

History Node

00.90.10

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
SimpleGUICS2Pygame-01.09.00-py2.7.egg (1.3 MB) Copy SHA256 Checksum SHA256 2.7 Egg Jan 1, 2015
SimpleGUICS2Pygame-01.09.00-py3.2.egg (1.4 MB) Copy SHA256 Checksum SHA256 3.2 Egg Jan 1, 2015
SimpleGUICS2Pygame-01.09.00.tar.gz (1.2 MB) Copy SHA256 Checksum SHA256 Source Jan 1, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting