Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XNAT-Group
XNAT_Query_Client_XSA
Commits
d64fb912
Commit
d64fb912
authored
Jan 22, 2015
by
Phillip Thelen
Committed by
Franziska Koehn
Apr 07, 2015
Browse files
add option to gui launcher to select gui
parent
151f3ea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
xsa_gui.py
View file @
d64fb912
...
...
@@ -6,6 +6,12 @@ if __name__ == "__main__":
parser
=
ArgumentParser
(
description
=
'search and download gui'
)
parser
.
add_argument
(
'--host'
,
type
=
str
,
help
=
'hostname or ip-address (including port).'
,
default
=
"http://localhost:8080"
)
parser
.
add_argument
(
'--user'
,
type
=
str
,
help
=
'user:passw'
,
default
=
":"
)
parser
.
add_argument
(
'--gui'
,
'-g'
,
type
=
str
,
default
=
'gtk'
,
choices
=
[
'gtk'
,
'web'
],
help
=
"Choose which GUI you would like to launch. Default is GTK"
)
from
xsagtk.xsa_app_main
import
start_xsa_gui
start_xsa_gui
(
parser
.
parse_args
())
args
=
parser
.
parse_args
()
if
args
.
gui
==
"gtk"
:
from
xsagtk.xsa_app_main
import
start_xsa_gui
start_xsa_gui
(
args
)
elif
args
.
gui
==
"web"
:
from
xsaweb.main
import
start_web_gui
start_web_gui
(
args
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment