tkgui.graphics module

Graphics tab for the TKinter GUI.

class tkgui.graphics.GraphicsTab(parent, *args, **kwargs)[source]

Bases: Tab

Graphics tab for the TKinter GUI.

create_controls()[source]

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

create_variables()[source]

Creates all TKinter variables needed by this tab. Overridden in child classes.

delete_colors()[source]

Deletes the selected color scheme.

install_graphics()[source]

Installs a graphics pack.

install_tilesets(mode=3)[source]

Installs selected tilesets.

Parameters:

mode – If mode & 1, installs FONT. If mode & 2, installs GRAPHICS_FONT.

load_colors()[source]

Replaces color scheme with the selected file.

paint_color_preview(colorscheme)[source]

Draws a preview of a color scheme. If no scheme is specified, draws the currently installed color scheme.

Parameters:

colorscheme – Listbox containing the list of color schemes.

read_colors()[source]

Reads list of color schemes.

read_data()[source]

Reads all external data needed. Overridden in child classes.

read_graphics()[source]

Reads list of graphics packs.

read_tilesets()[source]

Reads list of graphics packs.

save_colors()[source]

Saves color scheme to a file.

select_colors()[source]

Event handler for selecting a colorscheme.

select_graphics()[source]

Event handler for selecting a graphics pack.

simplify_graphics()[source]

Removes unnecessary files from graphics packs.

static update_savegames()[source]

Updates saved games with new raws.