Logo Search packages:      
Sourcecode: accerciser version File versions

def event_monitor::EventMonitor::_appendChildren (   self,
  parent_iter,
  parent,
  level,
  events 
) [private]

Append child events to a parent event's iter.

@param parent_iter: The tree iter of the parent.
@type parent_iter: gtk.TreeIter
@param parent: The parent event.
@type parent: string
@param level: The generation of the children.
@type level: integer
@param events: A list of children
@type events: list

@return: Return false to that this won't be called again in the mainloop.
@rtype: boolean

Definition at line 140 of file event_monitor.py.

00140                                                                :
    '''
    Append child events to a parent event's iter.
    
    @param parent_iter: The tree iter of the parent.
    @type parent_iter: gtk.TreeIter
    @param parent: The parent event.
    @type parent: string
    @param level: The generation of the children.
    @type level: integer
    @param events: A list of children
    @type events: list
    
    @return: Return false to that this won't be called again in the mainloop.
    @rtype: boolean
    '''
    for event in events:
      if event.count(':') == level and event.startswith(parent):
        iter = self.events_model.append(parent_iter, 
                                        [event.split(':')[-1],
                                         event, False, False])
        gobject.idle_add(self._appendChildren, iter, event, level + 1, events)
    return False
        
  def _onToggled(self, renderer_toggle, path):


Generated by  Doxygen 1.6.0   Back to index