Simple GUI Examples
Simple GUI Examples (TKinter)Simple GUI Examples (GTK)
CVS Resource Links
CVS Home PageCVS Manual Page
Python Language Resources
Remember to also check the Links page for useful links of various kinds.- Python Language Home Page: a Portal to many things Python
- Beginner's Guide
- Various Python Introductions
- Dive into Python: a helpful and helpfully free on-line book about Python
- Python Cookbook: Good place to browse for example solutions to various programming situations
- The What, Why, Who and Where of Python In UnixWorld On-line, by Aaron Watters.
- Scripting course by Hans Petter Langtangen A CS course on scripting that spans a wide range: why scripting, Perl vs. Python, intro to Python, regular expressions, Tkinter, CGI.
-
Python Tutorial
-
This tutorial introduces the reader informally to the basic concepts and
features of the Python language and system. It helps to have a Python
interpreter handy for hands-on experience.
-
Python Reference Manual
-
This reference manual describes the syntax and ``core
semantics'' of the language. It is terse, but attempts
to be exact and complete.
-
Python Library Reference
-
This library reference manual documents Python's
standard library, as well as many optional library
modules (which may or may not be available, depending
on whether the underlying platform supports them and
on the configuration choices made at compile time). It
also documents the standard types of the language and
its built-in functions and exceptions, many of which
are either not documented or are incompletely
documented in the Python Reference Manual. This manual
assumes basic knowledge about the Python language.
-
Extending and Embedding Python Interpreter
-
Python is an interpreted, object-oriented programming
language. This document describes how to write modules
in C or C++ to extend the Python interpreter with new
modules. Those modules can define new functions but
also new object types and their methods. The document
also describes how to embed the Python interpreter in
another application, for use as an extension
language. Finally, it shows how to compile and link
extension modules so that they can be loaded
dynamically (at run time) into the interpreter, if the
underlying operating system supports this feature.
-
Python/C API
-
This manual documents the API used by C (or C++)
programmers who want to write extension modules or
embed Python. It is a companion to Extending and
Embedding the Python Interpreter, which describes the
general principles of extension writing but does not
document the API functions in detail. Warning:
The current version of this document is incomplete.
Graphic User Interface (GUI) Resources for Python
-
TKInter
-
This widget set is getting old, but is still reliable and used
by a number of existing applications. The GTK (GIMP Toolkit) widget
set is generally accepted as preferable, but the documentation and
infrastructure of how to use GTK under Python is only now catching
up to TK. Thus, while a bit old, TK is still a better choice for this
class, and all of the basic principles of GUI design are the same.
An Introduction to Tkinter (PDF), by Fredrik Lundh
This book is a good reference on using Python and TkinterPython and Tkinter Programming John Grayson Manning (Publisher) ISBN 1-884777-81-3Publisher's PageExamples From Text(Shows use of Tkinter and Pmw with Python)
-
Python Mega Widgets (Pmw)
- Experience with GUI implementation has shown that many combinations of widgets are commonly repeated, leading to the notion of a composite, or mega-widget. Perhaps it would have been best to call it a meta-widget, but so it goes. The Mega-widget set provides class definitions for many commonly used combinations of widgets, for example scroll bars associated with list boxes, for a more standardized look and feel, as well as simpler and faster implementation.
-
The Pmw TAR file includes a number of demos of various
mega widgets that will give you a number of good ideas
for your application, as well as giving you concrete
examples of using the TK bindings within Python, so read
the source code as well as clicking the buttons.
The TAR file unpacks in a directory called "Pmw", and the demos are in "Pmw/Pmw_1_2/demos" within the unpacked directory tree. To run the demos:
bash% cd Pmw/Pmw_1_2/demos bash% python All.py
- Experience with GUI implementation has shown that many combinations of widgets are commonly repeated, leading to the notion of a composite, or mega-widget. Perhaps it would have been best to call it a meta-widget, but so it goes. The Mega-widget set provides class definitions for many commonly used combinations of widgets, for example scroll bars associated with list boxes, for a more standardized look and feel, as well as simpler and faster implementation.