Пример #1
0
 def item_focus_change(self, scene, item):
     """
     Set doc string in Help widget when focus on node changed
     """
     assert isinstance(item, dataflowview.vertex.GraphicalVertex)
     txt = item.vertex().get_tip()
     # todo: use services
     display_help(txt)
Пример #2
0
def _display_help(self):
    """
    Method to display help
    """
    doc = self.applet.model.get_documentation()
    if not doc:
        doc = """
<H1>Visualea</H1>

More informations: http://openalea.gforge.inria.fr/doc/openalea/visualea/doc/_build/html/contents.html
"""
    display_help(doc)
Пример #3
0
 def _diplay_help(widget):
     if self.model:
         display_help(self.model.get_documentation())
     else:
         display_help(self._obj.get_documentation())
Пример #4
0
 def _diplay_help(widget):
     if self.model:
         display_help(self.model.get_documentation())
     else:
         display_help(self._obj.get_documentation())
Пример #5
0
 def focus_change(self):
     """
     Set doc string in Help widget when focus changed
     """
     doc = self.model.get_documentation()
     display_help(doc)
Пример #6
0
 def focus_change(self):
     """
     Set doc string in Help widget when focus changed
     """
     doc = self.model.get_documentation()
     display_help(doc)