Add an info message when no tcl/tk support exists

This commit is contained in:
Orsiris de Jong 2023-03-25 14:33:40 +01:00
parent 47f22d0def
commit f35bba49a3

View file

@ -266,6 +266,12 @@ This is free software, and you are welcome to redistribute it under certain cond
if args.gui_status: if args.gui_status:
logger.info("Can run GUI: {}, errors={}".format(not _NO_GUI, _NO_GUI_ERROR)) logger.info("Can run GUI: {}, errors={}".format(not _NO_GUI, _NO_GUI_ERROR))
# Don't bother to talk about package manager when compiled with Nuitka
is_nuitka = "__compiled__" in globals()
if _NO_GUI and not is_nuitka:
logger.info(
'You need tcl/tk 8.6+ and python-tkinter installed for GUI to work. Please use your package manager (example "yum install python-tkinter" or "apt install python3-tk") to install missing dependencies.'
)
sys.exit(0) sys.exit(0)
if args.debug or os.environ.get("_DEBUG", "False").capitalize() == "True": if args.debug or os.environ.get("_DEBUG", "False").capitalize() == "True":