PEATDB/Search.py
def addSearch(self, evt=None):
        """Show filter dialog for current handler"""
        if self.handler.get() == 'ekin':
            S=ekinSearch(self.DB)
        elif  self.handler.get() == 'simple':
            S=simpleSearch(self.DB)
        elif  self.handler.get() == 'dict':
            S=dictSearch(self.DB)
        elif  self.handler.get() == 'structure':
            S=structureSearch(self.DB)
        frame=S.getWidget(parent=self.sframe, callback=self.doSearch)
        if frame == None:
            return
        frame.pack(anchor='nw',expand=1)
        self.currenthandlers.append(S)
        self.searchbars.append(frame)
        return
Show filter dialog for current handler
Show filter dialog for current handler
Show filter dialog for current handler
def addSearch(self, evt=None):
        if self.handler.get() == 'ekin':
            S=ekinSearch(self.DB)
        elif  self.handler.get() == 'simple':
            S=simpleSearch(self.DB)
        elif  self.handler.get() == 'dict':
            S=dictSearch(self.DB)
        elif  self.handler.get() == 'structure':
            S=structureSearch(self.DB)
        frame=S.getWidget(parent=self.sframe, callback=self.doSearch)
        if frame == None:
            return
        frame.pack(anchor='nw',expand=1)
        self.currenthandlers.append(S)
        self.searchbars.append(frame)
        return
def addSearch ( self , evt = None ) : if self . handler . get ( ) == 'ekin' : S = ekinSearch ( self . DB ) elif self . handler . get ( ) == 'simple' : S = simpleSearch ( self . DB ) elif self . handler . get ( ) == 'dict' : S = dictSearch ( self . DB ) elif self . handler . get ( ) == 'structure' : S = structureSearch ( self . DB ) frame = S . getWidget ( parent = self . sframe , callback = self . doSearch ) if frame == None : return frame . pack ( anchor = 'nw' , expand = 1 ) self . currenthandlers . append ( S ) self . searchbars . append ( frame ) return
Show filter dialog for current handler
Show filter dialog for current handler
"""Show filter dialog for current handler"""
self
evt