Sugar Toolkit GTK4 Documentation
Welcome to the Sugar Toolkit GTK4 documentation. This is a GTK4 port of the Sugar Toolkit for Python activities, providing a modern framework for creating educational activities for the Sugar Learning Platform.
The Sugar Toolkit GTK4 provides Python developers with the tools needed to create interactive educational activities that run on Sugar OS and other platforms. This toolkit includes widgets, utilities, and frameworks specifically designed for creating engaging learning experiences.
Getting Started
The Sugar Toolkit GTK4 is organized into several main modules:
sugar4.activity - Core activity framework and widgets
sugar4.graphics - UI components and styling
sugar4.bundle - Activity packaging and metadata
sugar4.datastore - Data persistence and sharing
sugar4.presence - Collaboration and networking
sugar4.dispatch - Event handling and signals
API Documentation
Activity Framework
Graphics & UI
- sugar4.graphics
- Submodules
- sugar4.graphics.alert
- sugar4.graphics.animator
- sugar4.graphics.colorbutton
- sugar4.graphics.combobox
- sugar4.graphics.icon
- sugar4.graphics.menuitem
- sugar4.graphics.objectchooser
- sugar4.graphics.palette
- sugar4.graphics.palettegroup
- sugar4.graphics.palettemenu
- sugar4.graphics.palettewindow
- sugar4.graphics.radiopalette
- sugar4.graphics.radiotoolbutton
- sugar4.graphics.style
- sugar4.graphics.toggletoolbutton
- sugar4.graphics.toolbarbox
- sugar4.graphics.toolbox
- sugar4.graphics.toolbutton
- sugar4.graphics.toolcombobox
- sugar4.graphics.tray
- sugar4.graphics.window
- sugar4.graphics.xocolor
- Attributes
- Classes
- Functions
- Package Contents
- Submodules
Data & Storage
Bundle Management
Collaboration
Event System
Core Utilities