def create_editor(self): """ Returns the default traits UI editor for this type of trait. """ ed = default_text_editor(self, Variable) def f(x): return format_ufloat(x, format_func=format_charge) ed.format_func = f return ed
def create_editor(self): """ Returns the default traits UI editor for this type of trait. """ ed = default_text_editor(self, Variable) ed.format_func = format_ohmE12 return ed