Re: [Qgis-user] Write and Save As with python in QGIS plugin

2013-12-26 Thread Suryo Miles
Silly me, i forgot to change the code below, the real problem is this error message [>File "C:\Users\Mr.Pakde/.qgis2/python/plugins\latih\latihdialog.py", line 71, in saveAs self._save( _filename ) File "C:\Users\Mr.Pakde/.qgis2/python/plugins\latih\latihdialog.py", line 59, in _save f.w

Re: [Qgis-user] Write and Save As with python in QGIS plugin

2013-12-26 Thread Suryo Miles
It works but now i have a different error message, it say "File "C:\Users\Mr.Pakde/.qgis2/python/plugins\latih\latihdialog.py", line 70, in saveAs _filename = "%s" % simpan NameError: global name 'simpan' is not defined" It is because i use python 3 and the code is from older version? Thank

Re: [Qgis-user] Write and Save As with python in QGIS plugin

2013-12-25 Thread Suryo Miles
Sorry i late to reply, i m trying it as soon as posible Thank you all for the answer @Joshua : wow nice observation yeah you are right i m a indonesian ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis

Re: [Qgis-user] Write and Save As with python in QGIS plugin

2013-12-24 Thread Joshua Brooks
I have no experience with QT, but this is a problem with the line If not filename.IsEmpty(): Instead try If filename is not Null: Or If filename != '' Don't capitalise ' if', that's my tablet doing that. Are you in Indonesia? I think I recognise a little bahasa in your comments On Dec 25, 20

Re: [Qgis-user] Write and Save As with python in QGIS plugin

2013-12-24 Thread Salvatore Larosa
Hi, On Tue, Dec 24, 2013 at 7:10 PM, Suryo Miles wrote: > I try to make plugin in QGIS and i want to make save as button but i got > error message like this > > ""Traceback (most recent call last): > File "C:\Users\Mr.Pakde/.qgis2/python/plugins\latih\latihdialog.py", > line 69, in > > saveAs >

[Qgis-user] Write and Save As with python in QGIS plugin

2013-12-24 Thread Suryo Miles
I try to make plugin in QGIS and i want to make save as button but i got error message like this ""Traceback (most recent call last): File "C:\Users\Mr.Pakde/.qgis2/python/plugins\latih\latihdialog.py", line 69, in saveAs if not filename.isEmpty(): AttributeError: 'unicode' object has no at