TKDESIGNER_VERBOSE=true crashes CLI at import with ValueError
Author: chirag127Created Jul 4, 2026Updated Jul 4, 2026
Problem
Setting TKDESIGNER_VERBOSE to any non-integer string crashes the CLI at import time before argparse runs.
Steps
pip install tkdesignerTKDESIGNER_VERBOSE=true tkdesigner <url> <token>
Expected
CLI enables verbose logging (as TKDESIGNER_VERBOSE=1 does) or ignores unrecognized values.
Actual
ValueError: invalid literal for int() with base 10: 'true'Crash at tkdesigner/cli.py:19:
if int(os.getenv("TKDESIGNER_VERBOSE", 0)) == 1:Same crash for TKDESIGNER_VERBOSE=yes, TKDESIGNER_VERBOSE=on, TKDESIGNER_VERBOSE= (empty).
Environment
tkdesigner 1.0.6 (pyproject.toml), Python 3.9+, OS-independent.
Suggested fix: guard with try/except or match on truthy strings.
Thanks for maintaining ParthJadhav/Tkinter-Designer!
Source: ParthJadhav/Tkinter-Designer