All pastes #428519 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-04-07 16:50 UTC
rendered paste body
        def on_start_query (self, sender, qstring):                             
                print ">>> qstring: ", qstring                                  
                                                                                
                if len(qstring) < self.minchars:                                
                        return                                                  
                if self.start_query_id != 0:                                    
                        gobject.source_remove(self.start_query_id)              
                                                                                
                self.start_query_id = gobject.timeout_add(self.typingdelay, sel\
f.on_start_query_real, sender, qstring)                                         
                                                                                
        def on_start_query_real (self, sender, qstring):                        
                print ">>>>>> query_real"                                       
                                                                                
                self._match_hashes = {}                                         
                results = []                                                    


>>> qstring:  n
>>>>>> query_real
>>> qstring:  nn
>>> qstring:  nnn
>>> qstring:  nnnn
>>> qstring:  nnnnn
>>> qstring:  nnnnnn
>>> qstring:  nnnnnnn
>>> qstring:  nnnnnnnn
>>>>>> query_real