def run(self): s = VRPSettings() s.log() file_settings = s.read(s.key_file_settings) file_gem_cache = s.read(s.key_file_gemeinden) if ( file_settings is None or file_settings.isspace() or file_settings == '' or file_gem_cache is None or file_gem_cache.isspace() or file_gem_cache == '' ): dlg = VoGISRaumplanungPlotSettingsDialog(self.iface, s) dlg.show() #0=cancel 1=OK result = dlg.exec_() if result != 1: return # Create the dialog (after translation) and keep reference self.dlg = VoGISRaumplanungPlotDialog(self.iface, s) self.dlg.show() result = self.dlg.exec_() if result == 1: pass
def settings(self): s = VRPSettings() s.log() dlg = VoGISRaumplanungPlotSettingsDialog(self.iface, s) dlg.show() dlg.exec_()