Logo Search packages:      
Sourcecode: accerciser version File versions

def event_monitor::EventMonitor::_onFlushQueue (   self  )  [private]

Timeout function for flushing the event monitor queue in to the 
text buffer.

@return: Always true so the timeout function repeats
@rtype: boolean

Definition at line 299 of file event_monitor.py.

00299                          :
    '''
    Timeout function for flushing the event monitor queue in to the 
    text buffer.
    
    @return: Always true so the timeout function repeats
    @rtype: boolean
    '''
    while True:
      try:
        event = self.event_queue.get_nowait()
      except Empty:
        break
      iter = self.monitor_buffer.get_iter_at_mark(self.monitor_mark)
      self.monitor_buffer.move_mark_by_name(
        'mark_last_log', 
        self.monitor_buffer.get_iter_at_mark(self.monitor_mark))
      self._insertEventIntoBuffer(event)
      self.textview_monitor.scroll_mark_onscreen(self.monitor_mark)
    return True

  def _insertEventIntoBuffer(self, event):


Generated by  Doxygen 1.6.0   Back to index