(self, parent=None, fields=None)
return parent
Add a filter frame
Add a filter frame
Add a filter frame
def createFilteringBar(self, parent=None, fields=None):
        """Add a filter frame"""

        if parent == None:
            parent = Toplevel()
            parent.title('Filter Records')
            x,y,w,h = self.getGeometry(self.master)
            parent.geometry('+%s+%s' %(x,y+h))
        if fields == None:
            fields = self.model.columnNames
        from .Filtering import FilterFrame
        self.filterframe = FilterFrame(parent, fields,
                                       self.doFilter, self.closeFilterFrame)
        self.filterframe.pack()
        return parent
def createFilteringBar ( self , parent = None , fields = None ) : if parent == None : parent = Toplevel ( ) parent . title ( 'Filter Records' ) x , y , w , h = self . getGeometry ( self . master ) parent . geometry ( '+%s+%s' % ( x , y + h ) ) if fields == None : fields = self . model . columnNames from . Filtering import FilterFrame self . filterframe = FilterFrame ( parent , fields , self . doFilter , self . closeFilterFrame ) self . filterframe . pack ( ) return parent