Custom Tabs¶
-
class
UI4.Tabs.BaseTab(parent, flags=0)¶ Base class for all UI tabs.
Inherits from
BaseFrameto provide handling of custom callbacks for actions and key events that are associated with user-defined keyboard shortcuts, and provides functions for storing and restoring settings per tab when loading and saving tab layouts.-
applySettings(settings)¶ Applies the given settings to the tab.
Is called when creating a tab of the type represented by a class derived from
BaseTab.Parameters: settings ( dict) – A dictionary of settings to apply to this tab.Note: The default implementation does nothing.
-
getSettings()¶ Return type: dictReturns: A dictionary of settings that should be stored and restored as part of a tab layout. Note: The default implementation returns an empty dictionary.
-