Example #1
0
def test_reopen_of_window(event_manager, element_factory, diagrams):
    editor = ElementEditor(event_manager, element_factory, diagrams)

    editor.open()
    editor.close()
    editor.open()
    editor.close()
Example #2
0
def test_reopen_of_window(event_manager, element_factory, main_window):
    editor = ElementEditor(event_manager, element_factory, main_window)

    editor.open()
    editor.close()
    editor.open()
    editor.close()
 def test1(self):
     import gtk
     window = ElementEditor()
     assert len(window.action_group.list_actions()
                ) == 1, window.action_group.list_actions()
     window.open()
     window.close()
Example #4
0
    def test1(self):
        from gi.repository import Gtk

        window = ElementEditor()
        assert (len(window.action_group.list_actions()) == 1
                ), window.action_group.list_actions()
        window.open()
        window.close()