This module contains all widgets used to construct the screens of the GUI
Some Box widgets as base for the GUI classes
Bases: usf.widgets.widget.Widget
This widget is never used directly, it is used to be a base for the HBox and VBox widget.
Bases: usf.widgets.box.Container
A widget which is able to contain others widgets and align them horizontally.
Bases: usf.widgets.box.Container
A widget which is able to contain others widgets and align them vertically.
A button widget, with a label.
Bases: usf.widgets.label.Label
A simple button. It returns a callback when we click on it.
This function handles mouse event. It returns a callback when we click on it.
Set the size of the widget. This function is usually called by the container, HBox or VBox.
This module provide a simple checkbox widget.
Bases: usf.widgets.widget.Widget
A checkbox widget.
This module provide a checkbox with a label beside it.
Bases: usf.widgets.box.HBox
A checkbox widget.
A nice coverflow effect for images
Bases: usf.widgets.widget.Widget
The coverflow widget is used to display many image and choose one of the them. It should be big, about 800 * 275. This widget is animated and requires a lot of CPU.
Draw the widget, the surface will be redrawed if the widget is animated. You can force redrawing by set need_update to True.
Bases: usf.widgets.widget.Widget
An image widget which can be used as a base for others widgets like buttons.
A Button widget with an image inside, instead of a text.
Bases: usf.widgets.image.Image
Return the widget surface. This fonction is often overrided.
A label widget, to place text.
Bases: usf.widgets.widget.Widget
A simple label widget
Bases: usf.widgets.widget.Widget
A simple paragraph widget. It reads a text which is in the data/text directory. It include a scroll bar but doesn’t support (yet) auto word wrap.
This function is used for auto scroll. It is called by the start_anim method which is in the Widget class.
A slider widget to configure values in a range.
Provide a widget to construct the Keyboard Configuration Interface.
Bases: usf.widgets.box.HBox
A spinner widget. (which could be called “select” too) It looks like this: <- text ->
It can be used to select an option (like a character, a game mode, etc...).
Bases: usf.widgets.box.VBox
/!This widget isn’t finished at all TODO
Bases: usf.widgets.box.HBox
Used in the Tab widget
This module provides a widget for UI, allowing to display and edit a line of text, it can be used to edit settings like an IP address for a network game, or a player name.
Bases: usf.widgets.button.Button
A widget allowing to enter some text
The base widget object. Probably not tu use directly, but used as base for all other widgets.