The various components of OcempGUI can be used alone without the
need to use another module of the package. If only a small event
management system is needed, only the
ocempgui.events
module can be imported. If
an event management exists and widgets are needed, only the
ocempgui.widgets
module needs to be
imported and so on.
The following OcempGUI modules are currently available:
ocempgui.access
Provides various accessibility tools and interfaces for
python, so that people with disabilities can easily use
and access python applications. Generic interfaces for
objects are available, which enable them to provide
information for access-related technologies like braille
keyboards or speech synthesizers. The
ocempgui.widgets
widget classes
will integrate the interfaces of this module in future
versions.
ocempgui.draw
Provides various drawing primitives, on which the
ocempgui.widgets
module
relies. Usually the methods of this module provide
simplified wrappers for the pygame drawing functions as
well as some more complex drawing object types.
ocempgui.events
A small and fast event management system. It comes with an
EventManager
class, which takes
care of distributing events to connected objects through
signal queues. The event management system can deal with
any type of data, which you want to use as event.
ocempgui.object
Abstract object definitions, that allow you to rapidly
create own classes, which are event capable through signal
slots. Function or method callbacks
can be connected to or disconnected from the signals, the
object listens to. The BaseObject
class is ready to be used with the
ocempgui.events
module.
ocempgui.widgets
Various GUI elements for the creation and integration of interactive user interfaces. This module contains most commonly used user interface elements as well as abstract core definitions and interfaces to rapidly create own user interface elements. It also provides an own rendering class, which allows you to instantly create your pygame application without the need of taking care about an event and update loop.