Attention une mise à jour du service Gitlab va être effectuée le mardi 30 novembre entre 17h30 et 18h00. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes. Cette mise à jour intermédiaire en version 14.0.12 nous permettra de rapidement pouvoir mettre à votre disposition une version plus récente.

Commit 0d6fbd67 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

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

parent 0b6e17f0
...@@ -475,9 +475,10 @@ class ImportPIDParam(object): ...@@ -475,9 +475,10 @@ class ImportPIDParam(object):
class ImportBioPAXParams(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): def __init__(self, chart, parent):
self.charter = chart self.charter = chart
...@@ -614,6 +615,7 @@ class ImportBioPAXParams(object): ...@@ -614,6 +615,7 @@ class ImportBioPAXParams(object):
self.remove_strongly_connected_components = \ self.remove_strongly_connected_components = \
self.wtree.get_widget('checkbox_remove_scc').get_active() 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") green = gtk.gdk.color_parse("green")
self.wtree.get_widget("button_make_model").modify_bg( self.wtree.get_widget("button_make_model").modify_bg(
gtk.STATE_NORMAL, green) gtk.STATE_NORMAL, green)
......
...@@ -217,37 +217,37 @@ class Charter(object): ...@@ -217,37 +217,37 @@ class Charter(object):
c_box.add(but) c_box.add(but)
self.button_handlers["Select"] = (but, -1) self.button_handlers["Select"] = (but, -1)
but = gtk.Button(label = "InputNode") but = gtk.Button(label = "InputNode (F1)")
self.add_accelerator(but, "F1") self.add_accelerator(but, "F1")
c_box.add(but) c_box.add(but)
self.button_handlers["InputNode"] = (but, -1) self.button_handlers["InputNode"] = (but, -1)
but = gtk.Button(label = "SimpleNode") but = gtk.Button(label = "SimpleNode (F2)")
self.add_accelerator(but, "F2") self.add_accelerator(but, "F2")
c_box.add(but) c_box.add(but)
self.button_handlers["SimpleNode"] = (but, -1) self.button_handlers["SimpleNode"] = (but, -1)
but = gtk.Button(label = "PermNode") but = gtk.Button(label = "PermNode (F3)")
self.add_accelerator(but, "F3") self.add_accelerator(but, "F3")
c_box.add(but) c_box.add(but)
self.button_handlers["PermNode"] = (but, -1) self.button_handlers["PermNode"] = (but, -1)
but = gtk.Button(label = "StartNode") but = gtk.Button(label = "StartNode (F4)")
self.add_accelerator(but, "F4") self.add_accelerator(but, "F4")
c_box.add(but) c_box.add(but)
self.button_handlers["StartNode"] = (but, -1) self.button_handlers["StartNode"] = (but, -1)
but = gtk.Button(label = "TrapNode") but = gtk.Button(label = "TrapNode (F5)")
self.add_accelerator(but, "F5") self.add_accelerator(but, "F5")
c_box.add(but) c_box.add(but)
self.button_handlers["TrapNode"] = (but, -1) self.button_handlers["TrapNode"] = (but, -1)
but = gtk.Button(label = "Transition") but = gtk.Button(label = "Transition (F6)")
self.add_accelerator(but, "F6") self.add_accelerator(but, "F6")
c_box.add(but) c_box.add(but)
self.button_handlers["Transition"] = (but, -1) self.button_handlers["Transition"] = (but, -1)
but = gtk.Button(label = "Constraints") but = gtk.Button(label = "Constraints (F7)")
self.add_accelerator(but, "F7") self.add_accelerator(but, "F7")
c_box.add(but) c_box.add(but)
self.button_handlers["Constraints"] = (but, -1) 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