Commit ea755c0d authored by VIGNET Pierre's avatar VIGNET Pierre

Add shortcuts F1 => F7 names to buttons; Add doc

parent e7f7cb50
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment