def merge_document(self): """Run the merge document wizard on the selection in the current table view""" from camelot.view.wizard.merge_document import MergeDocumentWizard selection_getter = self.activeMdiChild().get_selection wizard = MergeDocumentWizard(selection_getter=selection_getter) wizard.exec_()
def test_wizard_widget(self): from camelot.view.wizard.merge_document import MergeDocumentWizard wizard = MergeDocumentWizard(None, lambda:[]) wizard.show() self.grab_widget( wizard )