(self, _widget, terminal)
Watch a terminal
Watch a terminal
Watch a terminal
def watch(self, _widget, terminal):
        """Watch a terminal"""
        vte = terminal.get_vte()
        self.watches[terminal] = vte.connect('contents-changed',
                                             self.reset_timer, terminal)
        timeout_id = GObject.timeout_add(watch_interval, self.check_times, terminal)
        self.timers[terminal] = timeout_id
        dbg('timer %s added for %s' %(timeout_id, terminal))
def watch ( self , _widget , terminal ) : vte = terminal . get_vte ( ) self . watches [ terminal ] = vte . connect ( 'contents-changed' , self . reset_timer , terminal ) timeout_id = GObject . timeout_add ( watch_interval , self . check_times , terminal ) self . timers [ terminal ] = timeout_id dbg ( 'timer %s added for %s' % ( timeout_id , terminal ) )