jarvisteach / appJar

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

is it possible to remove deafult command line arguments? #623

Closed ghost closed 4 years ago

ghost commented 4 years ago

I have made a notepad app and i am trying to make it open a file just by double-clicking the file but it gives me an error

error:

usage: script.py [-h] [-v] [-c | -e | -w | -i | -d | -t] [-l LANGUAGE.ini] [-f file.log] [-s [SETTINGS]] [--ttk [THEME]]
temp.py: error: unrecognized arguments: C:\Users\user\deskop\file.txt

I am thinking it is because it has the default arguments form the appJar, is there a way to remove or disable them? I don't know if this is important or not but I am using sys.argv to get the arguments

jarvisteach commented 4 years ago

Have a look here: http://appjar.info/pythonCommandLine/#disabling http://appjar.info/pythonCommandLine/#disabling

On 4 Jun 2020, at 10:26, kowal05 notifications@github.com wrote:

I have made a notepad app and i am trying to make it open a file just by double-clicking the file but it gives me an error

error:

usage: script.py [-h] [-v] [-c | -e | -w | -i | -d | -t] [-l LANGUAGE.ini] [-f file.log] [-s [SETTINGS]] [--ttk [THEME]] temp.py: error: unrecognized arguments: C:\Users\user\deskop\file.txt I am thinking it is because it has the default arguments form the appJar, is there a way to remove or disable them? I don't know if this is important or not but I am using sys.argv to get the arguments

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jarvisteach/appJar/issues/623, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGZNG6AE735DG5ENELMUW3RU5SDFANCNFSM4NSOD7LQ.

ghost commented 4 years ago

oh, thanks I don't know why I totally couldn't see this when I tried to find about it in the docs