Exemplo n.º 1
0
    def on_slave_icon_selected(self, filename):
        """Called when the user selects a slave in the slave icon view."""
        from saplib import saputils

        # Add the slave into the slave graph.
        bus_type = self.sc.get_bus_type()

        tags = saputils.get_module_tags(filename, bus_type)
        module_name = tags["module"]
        filename = saputils.find_module_filename(module_name)
        self.property_view.set_node(module_name, filename, tags)
Exemplo n.º 2
0
  def on_slave_icon_selected(self, filename):
    """Called when the user selects a slave in the slave icon view."""
    from saplib import saputils

    # Add the slave into the slave graph.
    bus_type = self.sc.get_bus_type()

    tags = saputils.get_module_tags(filename, bus_type)
    module_name = tags["module"]
    filename = saputils.find_module_filename(module_name)
    self.property_view.set_node(module_name, filename,  tags)
Exemplo n.º 3
0
    def on_slave_selected(self, name, tags):
        """Updates the options in the property box; called when the user selects a
    slave from the actual graph."""
        if name is None:
            self.property_view.clear_properties()
            return

        from saplib import saputils

        filename = None
        if "module" in tags.keys():
            module_name = tags["module"]
            filename = saputils.find_module_filename(module_name)
            bus_type = self.sc.get_bus_type()

        self.property_view.set_node(name, filename, tags)
Exemplo n.º 4
0
  def on_slave_selected(self, name, tags):
    """Updates the options in the property box; called when the user selects a
    slave from the actual graph."""
    if name is None:
      self.property_view.clear_properties()
      return

    from saplib import saputils

    filename = None
    if "module" in tags.keys():
      module_name = tags["module"]
      filename = saputils.find_module_filename(module_name)
      bus_type = self.sc.get_bus_type()

    self.property_view.set_node(name, filename, tags)