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])
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])
def changed(self, gtk, actor): actor.nofify_text_changed(gtk.get_text())