(self, parent, fields, callback=None, closecallback=None)
return
Create a filtering gui frame.
        Callback must be some method that can accept tuples of filter
        parameters connected by boolean operators
Create a filtering gui frame.
        Callback must be some method that can accept tuples of filter
        parameters connected by boolean operators
Create a filtering gui frame . Callback must be some method that can accept tuples of filter parameters connected by boolean operators
def __init__(self, parent, fields, callback=None, closecallback=None):
        """Create a filtering gui frame.
        Callback must be some method that can accept tuples of filter
        parameters connected by boolean operators """
        Frame.__init__(self, parent)
        self.parent = parent
        self.callback = callback
        self.closecallback = closecallback
        self.fields = fields
        self.filters = []
        self.addFilterBar()
        addbutton=Button(self,text='Go', command=self.callback)
        addbutton.grid(row=0,column=0,sticky='news',padx=2,pady=2)
        addbutton=Button(self,text='+Add Filter', command=self.addFilterBar)
        addbutton.grid(row=0,column=1,sticky='news',padx=2,pady=2)
        cbutton=Button(self,text='Close', command=self.close)
        cbutton.grid(row=0,column=2,sticky='news',padx=2,pady=2)
        self.resultsvar=IntVar()
        Label(self,text='found:').grid(row=0,column=3,sticky='nes')
        Label(self,textvariable=self.resultsvar).grid(row=0,column=4,sticky='nws',padx=2,pady=2)
        return
def __init__ ( self , parent , fields , callback = None , closecallback = None ) : Frame . __init__ ( self , parent ) self . parent = parent self . callback = callback self . closecallback = closecallback self . fields = fields self . filters = [ ] self . addFilterBar ( ) addbutton = Button ( self , text = 'Go' , command = self . callback ) addbutton . grid ( row = 0 , column = 0 , sticky = 'news' , padx = 2 , pady = 2 ) addbutton = Button ( self , text = '+Add Filter' , command = self . addFilterBar ) addbutton . grid ( row = 0 , column = 1 , sticky = 'news' , padx = 2 , pady = 2 ) cbutton = Button ( self , text = 'Close' , command = self . close ) cbutton . grid ( row = 0 , column = 2 , sticky = 'news' , padx = 2 , pady = 2 ) self . resultsvar = IntVar ( ) Label ( self , text = 'found:' ) . grid ( row = 0 , column = 3 , sticky = 'nes' ) Label ( self , textvariable = self . resultsvar ) . grid ( row = 0 , column = 4 , sticky = 'nws' , padx = 2 , pady = 2 ) return