def testAnnotationDialog(self): QtGui.QApplication.instance() to_path = os.path.join(os.path.dirname(utils.__file__), 'test_resources/annotation_test/') if not os.path.exists(to_path): os.mkdir(to_path) dlg = AnnotationDialog(to_path) dlg.setModal(True)
def _show_annotation_tool(self): from mapclient.tools.annotation.annotationdialog import AnnotationDialog location = self._model.workflowManager().location() dlg = AnnotationDialog(location, DEFAULT_WORKFLOW_ANNOTATION_FILENAME, self) dlg.setModal(True) dlg.exec_()
def annotateMe(self): dlg = AnnotationDialog(self._getStepLocation()) dlg.setModal(True) dlg.exec_()
def annotationTool(self): from mapclient.tools.annotation.annotationdialog import AnnotationDialog location = self._model.workflowManager().location() dlg = AnnotationDialog(location, DEFAULT_WORKFLOW_ANNOTATION_FILENAME, self) dlg.setModal(True) dlg.exec_()