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
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
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
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
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
>
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