jarvisteach / appJar

Simple Tkinter GUIs in Python
http://appJar.info
Other
612 stars 68 forks source link

deactivate appJar's argparse #609

Closed hellowtisch closed 4 years ago

hellowtisch commented 4 years ago

I do import gui from appJar into my python script (guiTest.py). Now I want to read command line arguments and parse them with argparse in python3. However, whichever arguments I define I receive the following output:

usage: guiTest.py [-h] [-v] [-c | -e | -w | -i | -d | -t] [-l LANGUAGE.ini] [-f file.log] [-s [SETTINGS]] [--ttk [THEME]]

appJar - the easiest way to create GUIs in python

optional arguments: -h, --help show this help message and exit -v, --version show version information and exit -c only log CRITICAL messages -e log ERROR messages and above -w log WARNING messages and above -i log INFO messages and above -d log DEBUG messages and above -t log TRACE messages and above -l LANGUAGE.ini set a language file to use -f file.log set a log file to use -s [SETTINGS] load settings, from an optional file name --ttk [THEME] enable ttk, with an optional theme

For more information, go to: http://appJar.info

How can I deactivate appJar's argparse functionality?

hellowtisch commented 4 years ago

I found the solution in the docs. add handleArgs=False to the constructor did the trick.