Esempio n. 1
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])
 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)
Esempio n. 3
0
 def __edit(self, widget=None, data=None):
     block = self.block_notebook.get_selected_block()
     if block is None:
         return
     BlockEditor(self, block).run()
Esempio n. 4
0
 def __new(self, widget=None, data=None):
     BlockEditor(self, BlockModel()).run()
Esempio n. 5
0
 def setUp(self):
     self.parent = BlockManager(self.create_main_window())
     self.widget = BlockEditor(self.parent, self.create_block())
 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)