tkgui.dfhack module

DFHack tab for the TKinter GUI.

class tkgui.dfhack.DFHackTab(parent, *args, **kwargs)[source]

Bases: Tab

DFHack tab for the TKinter GUI.

configure_hacklist()[source]

Configures the treeview.

create_controls()[source]

Creates all controls for this tab. Overriden in child classes.

read_data()[source]

Reads all external data needed. Overridden in child classes.

static toggle_dfhack()[source]

Toggles the use of DFHack.

toggle_hack(event)[source]

Toggles the selected hack.

update_hack_list()[source]

Updates the hack list.

update_hack_tooltip(event)[source]

Event handler for mouse motion over items in the hack list.

If the mouse has moved out of the last list element, hides the tooltip. Then, if the mouse is over a list item, wait controls._TOOLTIP_DELAY milliseconds (without mouse movement) before showing the tooltip