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)
def FileEditor(*args, **kw): from traitsui.api import FileEditor as Editor return Editor(*args, **kw)
def RGBColorEditor(*args, **kw): from traitsui.api import RGBColorEditor as Editor return Editor(*args, **kw)
def BooleanEditor(*args, **kw): from traitsui.api import BooleanEditor as Editor return Editor(*args, **kw)