Пример #1
0
    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
Пример #2
0
    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
Пример #3
0
 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
Пример #4
0
 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