dicogis.utils.utils module

class dicogis.utils.utils.Utilities

Bases: object

DicoGIS specific utilities.

classmethod resolve_internal_path(internal_path)

Determine the path to internal resources, handling normal Python execution and frozen mode (typically PyInstaller).

Parameters:

internal_path (Path) – internal path to resolve from dicogis package folder

Returns:

resolved path

Return type:

Path

classmethod ui_switch(cb_value, parent)

Change state of all children widgets within a parent class.

cb_value=boolean parent=Tkinter class with children (Frame, Labelframe, Tk, etc.)