def on_gmlPathButton_clicked(self):
     path, filter = QFileDialog.getOpenFileName(
         self, self.tr("Open GML file"), self.gmlPathLineEdit.text(),
         self.tr("GML files or XSD (*.gml *.xml *.xsd)"))
     if path:
         settings.setValue("gml_path", os.path.dirname(path))
         self.gmlPathLineEdit.setText(path)
 def save_settings(self):
     settings.setValue('default_maxfeatures', self.featureLimitBox.value())
     settings.setValue('default_import_method', self.import_method())
     settings.setValue('default_language', self.languageLineEdit.text())
     settings.setValue('default_db_type', self.db_type())
     settings.setValue('default_access_mode', self.access_mode())
     settings.setValue('http_user_agent', self.http_user_agent())
 def save_settings(self):
     settings.setValue("default_maxfeatures", self.featureLimitBox.value())
     settings.setValue("default_import_method", self.import_method())
     settings.setValue("default_language", self.languageLineEdit.text())
     settings.setValue("default_db_type", self.db_type())
     settings.setValue("default_access_mode", self.access_mode())
     settings.setValue("http_user_agent", self.http_user_agent())
예제 #4
0
 def save_settings(self):
     settings.setValue('default_maxfeatures', self.featureLimitBox.value())
     settings.setValue('default_import_method', self.import_method())
     settings.setValue('default_language', self.languageLineEdit.text())
     settings.setValue('default_db_type', self.db_type())
     settings.setValue('default_access_mode', self.access_mode())