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

Project details


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

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Source

Supported by

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