0 after the window closed, 2 if tkinter is missing or there is no display.
Examples
from spotregen.gui import maintry: main(["--help"])exceptSystemExitas 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
--rootROOT repository root (default: search upwards, then the most recent
one)
exit 0