# PyGUI

# A
Graphical Application Framework
for
Python

by Greg Ewing

`greg.ewing@canterbury.ac.nz`

## Introduction

- Overview
- Terminology
- Event Handling
- Tutorial

## Topics

Discussions of various matters which don't fit neatly under the heading of any particular class or function.

- Coordinates, Points and Rectangles
- Actions
- Menu Setup
- Using the View and ScrollableView classes
- Customising the Standard Menu Bar
- Resources (NEW in 1.7)

## Framework Classes

Classes making up the foundation of the model-view architecture and message handling system.

- class Application
- class Document
- class Window
- class Model
- class View
- class MessageHandler

## Abstract Classes

These classes define properties and methods that other PyGUI classes have in common. They are for internal use by the PyGUI framework only. You should not instantiate these classes or derive your own classes directly from them.

- class Component
- class Container
- class Control
- class ViewBase
- class ImageBase

## Visual Classes

Classes representing user interface components which appear on the screen.

### Containers

- class Window
- class Dialog
- class ModalDialog
- class Frame
- class View
- class ScrollableView

### Controls

###

- class Label
- class Picture (not yet implemented)
- class Button
- class CheckBox
- class RadioButton
- class TextField
- class Slider (NEW in 1.7.2)

## Menu Classes

Classes for creating and manipulating menus.

- class Menu
- class MenuList
- class MenuItem

## Graphics Classes

Classes concerned with user-defined drawing.

- class Canvas
- class Color
- class Font
- class Image
- class Pixmap

## Support Classes

- class Event
- class RadioGroup
- class FileRef
- class DirRef
- class FileType
- class Task (Newly documented in 1.7)
- class Cursor (NEW in 1.7)
- Exception classes

## OpenGL Classes

- class GLConfig
- class GLView
- class GLPixmap
- class Texture
- class DisplayList (NEW in 1.7)
- class ShareGroup (NEW in 1.7)

## Functions

- Color functions
- Point and rectangle functions
- application()
- run() (NEW in 1.7.2)
- Alert functions
- File dialog functions
- Resource Functions

## Submodules

- StdColors
- StdFonts
- StdCursors (NEW in 1.7)
- Geometry
- GL

## Example Code

- blobedit.py