INNER CODE UNIT · Python

start_gui

pairinteraction/pairinteraction · src/pairinteraction/cli.py:158

def start_gui(*, reload: bool = False) -> int:
    """Launch the GUI."""
    from pairinteraction_gui import main as gui_main

    print("Launching the GUI...")
    gui_main(enable_theme_hot_reload=reload)
    return 0


def reset_gui_settings() -> int:
    """Delete the GUI settings file to restore default values."""
    from pairinteraction._backend import get_cache_directory

    settings_file = get_cache_directory() / "gui_settings.ini"

    if not settings_file.exists():
        print("No GUI settings file found. Nothing to delete.")
        return 0

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…