How can I upload CSV file in QGIS Desktop App?

المشرف العام

Administrator
طاقم الإدارة
Please see link : http://www.qgistutorials.com/en/docs/building_a_python_plugin.html

I am using the same process for uploading a CSV file in a folder but it gives me an error.

I am using this code:

def select_output_file(self): filename = QFileDialog.getSaveFileName(self.dlg, "Select output file ","", '*.txt') self.dlg.lineEdit.setText(filename) It gives the error:

Couldn't load plugin Importtool due to an error when calling its classFactory() method

Traceback (most recent call last):

File "C:/PROGRA~1/QGISWI~1/apps/qgis/./python\qgis\utils.py", line 219, in startPlugin plugins[packageName] = package.classFactory(iface)

File "C:/Users/n/.qgis2/python/plugins\Importtool__init__.py", line 34, in classFactory from .Import_tool import Importtool File "C:/PROGRA~1/QGISWI~1/apps/qgis/./python\qgis\utils.py", line 478, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/Users/n/.qgis2/python/plugins\Importtool\Import_tool.py", line 71 self.dlg.lineEdit.clear()

IndentationError: unexpected indent

Please see below image.




أكثر...
 
أعلى