5.3.1.8.11.3. cli.cmd_gui.gui_impl.FoxGui

class cli.cmd_gui.gui_impl.FoxGui

Bases: Tk

Implementation of a GUI to interact with the foxBMS 2 repository

close_tabs() → None

Stop the background work of all tabs.

Must be called from the main thread while the Tcl interpreter is alive.

close_window() → None

Run the ‘on_close’ function for all tabs before closing the GUI

create_new_file_cb(event: Event | None = None) → None

Create a new file

destroy() → None

Release transient GUI resources before destroying the root window.

open_vs_code_app_cb(event: Event | None = None) → None

Open VS Code in the ‘src/app’ directory

open_vs_code_app_unit_test_cb(event: Event | None = None) → None

Open VS Code in the ‘tests/unit/app’ directory

open_vs_code_bootloader_cb(event: Event | None = None) → None

Open VS Code in the ‘src/bootloader’ directory

open_vs_code_bootloader_unit_test_cb(event: Event | None = None) → None

Open VS Code in the ‘tests/unit/bootloader’ directory

open_vs_code_cli_cb(event: Event | None = None) → None

Open VS Code in the ‘cli’ directory

open_vs_code_generic_cb(event: Event | None = None) → None

Open VS Code in the repository root

show_about_cb(event: Event | None = None) → None

Show the About dialog

tab_changed_cb(event: Event) → None

Reset text widget when tab is changed

view_license_cb(event: Event | None = None) → None

View the foxBMS 2 license