Esempio n. 1
0
 def _search_propcol(self, model, col, key, iter, prop):
     obj = model.get_value(iter, 0)
     propval = getattr(obj, prop)
     text = unicode(propval)
     if text.find(key) >= 0:
         return False
     return True
Esempio n. 2
0
 def _search_propcol(self, model, col, key, iter, prop):
     obj = model.get_value(iter, 0)
     propval = getattr(obj, prop)
     text = unicode(propval) 
     if text.find(key) >= 0:
         return False
     return True
Esempio n. 3
0
 def _render_objtext(self, col, cell, model, iter):
     obj = model.get_value(iter, 0)
     cell.set_property('text', unicode(repr(obj)))
Esempio n. 4
0
 def _search_proptext(self, model, col, key, iter, prop):
     obj = model.get_value(iter, 0)
     propval = unicode(getattr(obj, prop))
     if propval.find(key) >= 0:
         return False
     return True
Esempio n. 5
0
 def _render_propcol(self, col, cell, model, iter, data):
     (prop, idx) = data
     obj = model.get_value(iter, idx)
     propval = getattr(obj, prop)
     cell.set_property('text', unicode(propval))
Esempio n. 6
0
 def _render_objtext(self, col, cell, model, iter):
     obj = model.get_value(iter, 0)
     cell.set_property('text', unicode(repr(obj)))
Esempio n. 7
0
 def _search_proptext(self, model, col, key, iter, prop):
     obj = model.get_value(iter, 0)
     propval = unicode(getattr(obj, prop))
     if propval.find(key) >= 0:
         return False
     return True
Esempio n. 8
0
 def _render_propcol(self, col, cell, model, iter, data):
     (prop, idx) = data        
     obj = model.get_value(iter, idx)
     propval = getattr(obj, prop)
     cell.set_property('text', unicode(propval))