Ejemplo n.º 1
0
class TestBlockEditor(TestBase):
    def setUp(self):
        self.parent = BlockManager(self.create_main_window())
        self.widget = BlockEditor(self.parent, self.create_block())

    def test_run(self):
        self.widget.run()
        self.parent.close()
        self.parent.destroy()
Ejemplo n.º 2
0
    def __edit_clicked(self, args):
        """
        This method monitors if the button delete was clicked.

            Parameters:
            * **args**

        """
        BlockEditor(self.main_window,
                    System.blocks[self.main_window.block_menu.block.type])
Ejemplo n.º 3
0
 def setUp(self):
     block = self.create_block()
     block_manager = BlockManager(self.create_main_window())
     block_editor = BlockEditor(block_manager, block)
     self.widget = BlockPortEditor(block_editor, block)
Ejemplo n.º 4
0
 def __edit(self, widget=None, data=None):
     block = self.block_notebook.get_selected_block()
     if block is None:
         return
     BlockEditor(self, block).run()
Ejemplo n.º 5
0
 def __new(self, widget=None, data=None):
     BlockEditor(self, BlockModel()).run()
Ejemplo n.º 6
0
 def setUp(self):
     self.parent = BlockManager(self.create_main_window())
     self.widget = BlockEditor(self.parent, self.create_block())
Ejemplo n.º 7
0
 def test_base(self):
     block = self.create_block()
     block_manager = BlockManager(self.create_main_window())
     block_editor = BlockEditor(block_manager, block)
     self.widget = BlockCodeEditor(block_editor, block)