Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
0d6fbd67
Commit
0d6fbd67
authored
Sep 14, 2017
by
VIGNET Pierre
Browse files
Add shortcuts F1 => F7 names to buttons; Add doc
parent
0b6e17f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
gui/cadbiom_gui/gt_gui/chart_misc_widgets.py
View file @
0d6fbd67
...
...
@@ -475,9 +475,10 @@ class ImportPIDParam(object):
class
ImportBioPAXParams
(
object
):
"""On a fait quoi des and/or ??????
"""
Widget for BioPAX model importing
Widget for model importing
.. note:: requires biopax2cadbiom module
"""
def
__init__
(
self
,
chart
,
parent
):
self
.
charter
=
chart
...
...
@@ -614,6 +615,7 @@ class ImportBioPAXParams(object):
self
.
remove_strongly_connected_components
=
\
self
.
wtree
.
get_widget
(
'checkbox_remove_scc'
).
get_active
()
# Color the button in green when the form is valid
green
=
gtk
.
gdk
.
color_parse
(
"green"
)
self
.
wtree
.
get_widget
(
"button_make_model"
).
modify_bg
(
gtk
.
STATE_NORMAL
,
green
)
...
...
gui/cadbiom_gui/gt_gui/charter.py
View file @
0d6fbd67
...
...
@@ -217,37 +217,37 @@ class Charter(object):
c_box
.
add
(
but
)
self
.
button_handlers
[
"Select"
]
=
(
but
,
-
1
)
but
=
gtk
.
Button
(
label
=
"InputNode"
)
but
=
gtk
.
Button
(
label
=
"InputNode
(F1)
"
)
self
.
add_accelerator
(
but
,
"F1"
)
c_box
.
add
(
but
)
self
.
button_handlers
[
"InputNode"
]
=
(
but
,
-
1
)
but
=
gtk
.
Button
(
label
=
"SimpleNode"
)
but
=
gtk
.
Button
(
label
=
"SimpleNode
(F2)
"
)
self
.
add_accelerator
(
but
,
"F2"
)
c_box
.
add
(
but
)
self
.
button_handlers
[
"SimpleNode"
]
=
(
but
,
-
1
)
but
=
gtk
.
Button
(
label
=
"PermNode"
)
but
=
gtk
.
Button
(
label
=
"PermNode
(F3)
"
)
self
.
add_accelerator
(
but
,
"F3"
)
c_box
.
add
(
but
)
self
.
button_handlers
[
"PermNode"
]
=
(
but
,
-
1
)
but
=
gtk
.
Button
(
label
=
"StartNode"
)
but
=
gtk
.
Button
(
label
=
"StartNode
(F4)
"
)
self
.
add_accelerator
(
but
,
"F4"
)
c_box
.
add
(
but
)
self
.
button_handlers
[
"StartNode"
]
=
(
but
,
-
1
)
but
=
gtk
.
Button
(
label
=
"TrapNode"
)
but
=
gtk
.
Button
(
label
=
"TrapNode
(F5)
"
)
self
.
add_accelerator
(
but
,
"F5"
)
c_box
.
add
(
but
)
self
.
button_handlers
[
"TrapNode"
]
=
(
but
,
-
1
)
but
=
gtk
.
Button
(
label
=
"Transition"
)
but
=
gtk
.
Button
(
label
=
"Transition
(F6)
"
)
self
.
add_accelerator
(
but
,
"F6"
)
c_box
.
add
(
but
)
self
.
button_handlers
[
"Transition"
]
=
(
but
,
-
1
)
but
=
gtk
.
Button
(
label
=
"Constraints"
)
but
=
gtk
.
Button
(
label
=
"Constraints
(F7)
"
)
self
.
add_accelerator
(
but
,
"F7"
)
c_box
.
add
(
but
)
self
.
button_handlers
[
"Constraints"
]
=
(
but
,
-
1
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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