5.9. GUI Add-on basic features
Similarly to Kickstart support in add-ons, GUI support requires that every part of the add-on must contain at least one module with a definition of a class inherited from a particular class defined by the API. For the graphical add-on support, the only class you should add is the NormalSpoke class, defined in pyanaconda.ui.gui.spokes, as a class for the normal spoke type of screen. To learn more about it, see Anaconda user interface.
To implement a new class inherited from NormalSpoke, you must define the following class attributes that the API requires:
-
builderObjects- lists all top-level objects from the spoke’s.gladefile that should be exposed to the spoke with their children objects (recursively). In case everything should be exposed to the spoke, the list should be empty. -
mainWidgetName- contains the id of the main window widget (Add Link) as defined in the.gladefile. -
uiFile- contains the name of the.gladefile. -
category- contains the class of the category the spoke belongs to. -
icon- contains the identifier of the icon that will be used for the spoke on the hub. -
title- defines the title that will be used for the spoke on the hub.