Logo Search packages:      
Sourcecode: quickly-widgets version File versions  Download package

def widgets::grid_filter::GridFilter::__init__ (   self,
  grid,
  filter_hints = {} 
)

Create a GridFilter for filtering an associated treeview.
This class is used by BugsPane.

arguments:
headings -- a tuple of lists of column headers associated with the 
treeview. Each list includes a string for the column title, a constructor
for a widget that supports filtering (such as StringFilter or NumericFilter)
and a zero-based position index for the specific column in the treeview that
will position the header. 
treeview -- the treeview to be filtered. 

Definition at line 34 of file grid_filter.py.

00034                                        {} ):
  """Create a GridFilter for filtering an associated treeview.
  This class is used by BugsPane.

  arguments:
  headings -- a tuple of lists of column headers associated with the 
  treeview. Each list includes a string for the column title, a constructor
  for a widget that supports filtering (such as StringFilter or NumericFilter)
  and a zero-based position index for the specific column in the treeview that
  will position the header. 
  treeview -- the treeview to be filtered. 
  """

  gtk.VBox.__init__( self, False, 10 )
  self.grid = grid
  self.store = grid.get_model()
  self.filter_hints = filter_hints

  #create the and/or radio buttons
  radio_box = gtk.HBox(False,2)
  radio_box.show()
  self.pack_start(radio_box, False, False)
  self.and_button = gtk.RadioButton(None,"M_atch All of the following", True)
  self.and_button.show()
  self.and_button.connect("toggled",self.__filter_changed)
  radio_box.pack_start(self.and_button, False, False)
  or_button = gtk.RadioButton(self.and_button,"Match any _of the following", True)
  or_button.show()
  radio_box.pack_start(or_button, False, False)
  self.rows = []
  self.add_row(self)


Generated by  Doxygen 1.6.0   Back to index