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
rli
pbdlib-python
Commits
c6534f65
Commit
c6534f65
authored
Feb 04, 2019
by
Emmanuel PIGNAT
Browse files
gui for demos
parent
a8e6efea
Changes
1
Hide whitespace changes
Inline
Side-by-side
gui/demos.py
0 → 100755
View file @
c6534f65
#!/usr/bin/env python
from
pbdlib.gui
import
InteractiveDemos
import
argparse
print
"dt = 0.05"
arg_fmt
=
argparse
.
RawDescriptionHelpFormatter
parser
=
argparse
.
ArgumentParser
(
formatter_class
=
arg_fmt
)
parser
.
add_argument
(
'-f'
,
'--filename'
,
dest
=
'filename'
,
type
=
str
,
default
=
'test'
,
help
=
'filename'
)
parser
.
add_argument
(
'-p'
,
'--path'
,
dest
=
'path'
,
type
=
str
,
default
=
''
,
help
=
'path'
)
args
=
parser
.
parse_args
()
interactive_demo
=
InteractiveDemos
(
filename
=
args
.
filename
,
path
=
args
.
path
)
interactive_demo
.
start
()
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