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

def widgets::grid_filter::FilterRow::is_match (   self,
  store_iter,
  model 
)

is_match: returns true if the filter set in the FilterRow matches
the value specified in the column and row. Used to determine whether 
to hide or show a row.
Typically called for each treeview row and each FilterRow in response
to a change in one of the FilterRows.

arguments:
store_iter: the iter pointing the the row in the treeview to test
model: the treeview model containing the rows being tested

Definition at line 258 of file grid_filter.py.

00258                                       :
  """is_match: returns true if the filter set in the FilterRow matches
  the value specified in the column and row. Used to determine whether 
  to hide or show a row.
  Typically called for each treeview row and each FilterRow in response
  to a change in one of the FilterRows.

  arguments:
  store_iter: the iter pointing the the row in the treeview to test
  model: the treeview model containing the rows being tested

  """
  #get the filter combo
  col_iter = self.column_combo.get_model().get_iter(self.column_combo.get_active())
  combo = self.column_combo.get_model().get_value(col_iter,1)

  #return if now combo is set
  if combo.get_active() < 0:
   return True

  #return if wating for input
  if self.wait_for_input and self.filter_entry.get_text() == "":
   return True
 

  #get the filter function from the selection in the fitler combo
  filt_iter = combo.get_model().get_iter(combo.get_active())
  filt_func = combo.get_model().get_value(filt_iter,1) 

  #find the column in the treeview to look in
  treeview_col = self.column_combo.get_model().get_value(col_iter,2)

  #pull the value out of the store
  orig_val = model.get_value(store_iter.copy(), treeview_col)
  if orig_val == None:
   orig_val = ""
  return filt_func(orig_val, self.filter_entry.get_text())    

class BlankFilterCombo( gtk.ComboBox):


Generated by  Doxygen 1.6.0   Back to index