Logo Search packages:      
Sourcecode: accerciser version File versions

def accerciser::accessible_treeview::AccessibleTreeView::_onSelectionChanged (   self,
  selection 
) [private]

Update the accessible according to the selected row.

@param selection: The selection object that emitted the the 'selection-changed'
signal.
@type selection: L{gtk.TreeSelection}

Definition at line 595 of file accessible_treeview.py.

00595                                           :
    '''
    Update the accessible according to the selected row.

    @param selection: The selection object that emitted the the 'selection-changed'
    signal.
    @type selection: L{gtk.TreeSelection}
    '''
    self._path_to_expand = None
    model, iter = selection.get_selected()
    if iter:
      new_acc = model[iter][COL_ACC]
      self.refresh_current_action.set_sensitive(True)
    else:
      new_acc = self.desktop
      self.refresh_current_action.set_sensitive(False)
    if new_acc == self.node.acc:
      return
    self.node.handler_block(self._changed_handler)
    self.node.update(new_acc)
    self.node.handler_unblock(self._changed_handler)
    if iter:
      path = model.get_path(iter)
      self.node.tree_path = list(path[1:])

  def _onAccChanged(self, node, acc):


Generated by  Doxygen 1.6.0   Back to index