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: str)#
diff_widgets(old_widgets: list[GUIElementProtocol[WidgetData] | GroupWidgetData], new_widgets: list[GUIElementProtocol[WidgetData] | GroupWidgetData], parent: str | None = None) → tuple[list[dict], list[dict]]#
disable_mod(_sender, _keyword, user_data: str)#
property disabled_mods#
enable_mod(_sender, _keyword, user_data: str)#
exit()#
handle_diff_row(mod: Mod, line: dict, is_remove: bool = False)#

Handle the row diff. This will generally receive the line from the diffs, however if can also receive children of groups which need to be deleted.

hex_view: HexView#
hide_window()#
reload_tab(mod: Mod | str, is_enabled: bool | None = None)#

Reload the tab for the specific mod. If the mod is actually the string name then we don’t draw the widgets and set the tab to the is_enabled state.

remove_tab(mod: Mod)#

Remove the tab associated with the provided class.

run()#
show_window()#
toggle_debug_mode(_sender, is_debug)#
toggle_module_reload(_sender, reload_module)#
toggle_show_gui(_sender, show_gui)#
class pymhf.gui.gui.VariableData(mod: 'Mod', variable_name: 'str', variable_type: '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)#