gtk.main(): make source more readable + comment about cli & gui

This commit is contained in:
Markus Heiser 2018-09-02 15:56:01 +02:00 committed by Peter Wu
parent 5944103aef
commit de79bf1b5c
1 changed files with 3 additions and 1 deletions

4
lib/solaar/gtk.py Normal file → Executable file
View File

@ -85,7 +85,9 @@ def main():
args = _parse_arguments()
if not args: return
if args.action: return _cli.run(args.action, args.hidraw_path)
if args.action:
# if any argument, run comandline and exit
return _cli.run(args.action, args.hidraw_path)
gi = _require('gi', 'python-gi')
gi.require_version('Gtk', '3.0')