Logo Search packages:      
Sourcecode: accerciser version File versions

def accerciser::accessible_treeview::AccessibleTreeView::_onAccChanged (   self,
  node,
  acc 
) [private]

Change the treeview's selection to the updated accessible in the L{Node}.

@param node: The L{node} that emitted the signal.
@type node: L{Node}
@param acc: The new accessible in the node.
@type acc: L{Accessibility.Accessible}

Definition at line 620 of file accessible_treeview.py.

00620                                     :
    '''
    Change the treeview's selection to the updated accessible in the L{Node}.

    @param node: The L{node} that emitted the signal.
    @type node: L{Node}
    @param acc: The new accessible in the node.
    @type acc: L{Accessibility.Accessible}
    '''
    if self.isMyApp(acc):
      # Bad karma
      return
    path = self.model.getAccPath(acc)
    if not path:
      return
    if len(path) >= 1:
      self.selectNodeAtPath(path)
      self.node.tree_path = list(path[1:])

  def selectNodeAtPath(self, path):


Generated by  Doxygen 1.6.0   Back to index