Example #1
0
 def get_value (self):
     txt = gtk.get_text()
     split = convert.RANGE_MATCHER.split(txt)
     if len(split)==1: return NumberEntry.get_value(self)
     if len(split)>2: return None
     else:
         return tuple([convert.frac_to_float(t) for t in split])
Example #2
0
 def get_value(self):
     txt = gtk.get_text()
     split = convert.RANGE_MATCHER.split(txt)
     if len(split) == 1: return NumberEntry.get_value(self)
     if len(split) > 2: return None
     else:
         return tuple([convert.frac_to_float(t) for t in split])
Example #3
0
 def changed(self, gtk, actor):
     actor.nofify_text_changed(gtk.get_text())