Skip to main content

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).

SimpleGUICS2Pygame

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 OPi

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 Donate

License: GPLv3 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

Download files

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

Source Distribution

SimpleGUICS2Pygame-01.09.00.tar.gz (1.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

SimpleGUICS2Pygame-01.09.00-py3.2.egg (1.4 MB view details)

Uploaded Egg

SimpleGUICS2Pygame-01.09.00-py2.7.egg (1.3 MB view details)

Uploaded Egg

File details

Details for the file SimpleGUICS2Pygame-01.09.00.tar.gz.

File metadata

File hashes

Hashes for SimpleGUICS2Pygame-01.09.00.tar.gz
Algorithm Hash digest
SHA256 ea06ad10d4f1a8c3cc019193381ae16e248789047daaf7acfd291abe35693191
MD5 fb5e074bdd4d444dc64190a46c0ae1ea
BLAKE2b-256 715d2049c0c4509bef83d36a19d15f7b3eeadc2bc1f7439e7c7631e4f30addb2

See more details on using hashes here.

File details

Details for the file SimpleGUICS2Pygame-01.09.00-py3.2.egg.

File metadata

File hashes

Hashes for SimpleGUICS2Pygame-01.09.00-py3.2.egg
Algorithm Hash digest
SHA256 9123a7798b31094ae638daab799fda1de78ac5ff9b37d34850fce3bb445a1087
MD5 7eaac1ceaec3ad5e54f3d8a13dd39d35
BLAKE2b-256 beece41c981a2a31dfc5b5e07343e7b62f264c58d0e1f33365d31ba357f7221d

See more details on using hashes here.

File details

Details for the file SimpleGUICS2Pygame-01.09.00-py2.7.egg.

File metadata

File hashes

Hashes for SimpleGUICS2Pygame-01.09.00-py2.7.egg
Algorithm Hash digest
SHA256 40257bd719c1bbf8cc633a34249eaf409c6fd91e2cee29e1614d2967eef50e59
MD5 1b4e778a0017790c5c5fb8439843261d
BLAKE2b-256 9f42dea781f0c2426860d000579d9ee4427ee61b64f88fb59fdc00d983bd46b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page