Integration in projects

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.

Modules

The following OcempGUI modules are currently available:

ocempgui.access

Provides various accessibility tools and interfaces for pygame, so that people with disabilities can easily use and access pygame applications. Generic object interfaces for pygame elements are available, which enable them to provide information for access-related technologies like braille keyboards or speech synthesizers. The ocempgui.widgets widget classes integrate the interfaces of this module.

Note

The accessibility module is in an early state at the moment and currently does not offer any outstanding feature.

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.

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.