gtk.main(): make source more readable + comment about cli & gui
This commit is contained in:
parent
5944103aef
commit
de79bf1b5c
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue