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()
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)
def __edit(self, widget=None, data=None): block = self.block_notebook.get_selected_block() if block is None: return BlockEditor(self, block).run()
def __new(self, widget=None, data=None): BlockEditor(self, BlockModel()).run()
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)