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)
Ejemplo n.º 2
0
def FileEditor(*args, **kw):
    from traitsui.api import FileEditor as Editor
    return Editor(*args, **kw)
Ejemplo n.º 3
0
def RGBColorEditor(*args, **kw):
    from traitsui.api import RGBColorEditor as Editor
    return Editor(*args, **kw)
Ejemplo n.º 4
0
def BooleanEditor(*args, **kw):
    from traitsui.api import BooleanEditor as Editor
    return Editor(*args, **kw)