def test_editor_on_delegates_to_event(self):
     """ Make sure that DelegatesTo on Events passes Editor creation.
     """
     child = Child(parent=Parent())
     editor = Editor(
         None, factory=TextEditor(), object=child, name='button')
     self.assertIs(editor.old_value, Undefined)
Пример #2
0
def FileEditor(*args, **kw):
    from traitsui.api import FileEditor as Editor
    return Editor(*args, **kw)
Пример #3
0
def RGBColorEditor(*args, **kw):
    from traitsui.api import RGBColorEditor as Editor
    return Editor(*args, **kw)
Пример #4
0
def BooleanEditor(*args, **kw):
    from traitsui.api import BooleanEditor as Editor
    return Editor(*args, **kw)