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_window()#
- alpha_callback(sender, app_data)#
- diff_widgets(old_widgets: list[GUIElementProtocol[WidgetData] | GroupWidgetData], new_widgets: list[GUIElementProtocol[WidgetData] | GroupWidgetData], parent: str | None = None) tuple[list[dict], list[dict]]#
- property disabled_mods#
- 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.
- 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.
- 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- variable_type: VariableType#
- 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#