pymhf.gui.gui module#

class pymhf.gui.gui.GUI(mod_manager: ModManager, config: pymhfConfig)#

Bases: object

add_details_tab()#
add_hex_tab()#
add_settings_tab()#

Add a settings tab to configure the gui and other things.

add_tab(mod: Mod)#

Add the mod as a new tab in the GUI.

add_window()#
alpha_callback(sender, app_data)#
change_tab(_: str, app_data: int)#
diff_widgets(old_widgets: list[GUIElementProtocol[WidgetData] | GroupWidgetData], new_widgets: list[GUIElementProtocol[WidgetData] | GroupWidgetData], parent: str | None = None) tuple[list[dict], list[dict]]#
exit()#
handle_diff_row(mod: Mod, line: dict)#
hex_view: HexView#
hide_window()#
reload_tab(mod: Mod)#

Reload the tab for the specific mod.

remove_tab(mod: Mod)#

Remove the tab associated with the provided class.

run()#
show_window()#
toggle_debug_mode(_sender, is_debug)#
toggle_show_gui(_sender, show_gui)#
class pymhf.gui.gui.VariableData(mod: pymhf.core.mod_loader.Mod, variable_name: str, variable_type: pymhf.gui.widget_data.VariableType, has_setter: bool)#

Bases: object

has_setter: bool#
mod: Mod#
variable_name: str#
variable_type: VariableType#
class pymhf.gui.gui.WidgetDiff#

Bases: TypedDict

type: str#
class pymhf.gui.gui.Widgets#

Bases: TypedDict

buttons: dict[str, GUIElementProtocol[ButtonWidgetData]]#
variables: dict[str, GUIElementProtocol[VariableWidgetData]]#
pymhf.gui.gui.get_id(widget: GUIElementProtocol[WidgetData] | GroupWidgetData) str#
pymhf.gui.gui.toggle_on_top(item: int, value: bool)#