gui.main

gui.main(argv=None)

Open the graphical interface.

Parameters

Name Type Description Default
argv Sequence[str] | None Command-line arguments without the program name. Defaults to sys.argv[1:]. None

Returns

Name Type Description
int int 0 after the window closed, 2 if tkinter is missing or there is no display.

Examples

from spotregen.gui import main

try:
    main(["--help"])
except SystemExit as exit:
    print("exit", exit.code)
usage: spotregen-gui [-h] [--root ROOT]



Open the graphical interface of spotregen.



options:

  -h, --help   show this help message and exit

  --root ROOT  repository root (default: search upwards, then the most recent

               one)

exit 0