pKaTool/pKacalc_interface.py
def do_search(self,event=None):
        """Search for the calcs where a certain text is found"""
        self.calculations.delete(0,END)
        self.calcs_displayed=[]
        text=self.searchtext.get()
        for calcname,info,setup in self.calculations_ready:
            if calcname.find(text)!=-1 or info.find(text)!=-1:
                self.calcs_displayed.append([calcname,info,setup])
                self.calculations.insert(END,'%6s: %25s' %(calcname,info[:45]))
        return
Search for the calcs where a certain text is found
Search for the calcs where a certain text is found
Search for the calcs where a certain text is found
def do_search(self,event=None):
        self.calculations.delete(0,END)
        self.calcs_displayed=[]
        text=self.searchtext.get()
        for calcname,info,setup in self.calculations_ready:
            if calcname.find(text)!=-1 or info.find(text)!=-1:
                self.calcs_displayed.append([calcname,info,setup])
                self.calculations.insert(END,'%6s: %25s' %(calcname,info[:45]))
        return
def do_search ( self , event = None ) : self . calculations . delete ( 0 , END ) self . calcs_displayed = [ ] text = self . searchtext . get ( ) for calcname , info , setup in self . calculations_ready : if calcname . find ( text ) != - 1 or info . find ( text ) != - 1 : self . calcs_displayed . append ( [ calcname , info , setup ] ) self . calculations . insert ( END , '%6s: %25s' % ( calcname , info [ : 45 ] ) ) return
Search for the calcs where a certain text is found
Search for the calcs where a certain text is found
"""Search for the calcs where a certain text is found"""
self
event