[Qgis-user] show record from table in ms-access using python

2014-06-20 Thread Suryo Miles
I have a ms-access database and i try to make QGIS plugin that take record from table and show it in Qt, database have format like this : NO Skala 1 Skala2 Rekomendasi 1. 10001000Skala Sama 2. 10005000Skal

[Qgis-user] show text in TextBrowser

2014-05-15 Thread Suryo Miles
, I make a QGIS plugin to parse xml and show it as a report in TextBrowser, but when i run this plugin it didnt appear in TextBrowser and i didnt get any error message from it, this code i use to showing text in textBrowser def info(self, inform): fore = open(inform, 'w' ).write()

[Qgis-user] change element into Qstring in ElementTree

2014-04-28 Thread Suryo Miles
I try to make QGIS plugin to open and show metadata information in xml format i use this code to open metadata from drive and show it in UI: *from PyQt4 import QtCore, QtGuifrom ui_testparse import Ui_testparseimport xml.etree.ElementTree as ETree# creat

[Qgis-user] argument 1 has unexpected type error when parse xml with ElementTree

2014-04-22 Thread Suryo Miles
I try to make plugin in QGIS Dufour to open and read xml metadata and then to show some information in metadata i try to parse it with ElementTree and then show it in QLineEdit, this code i use to open metadata and parse metadata : from PyQt4 import QtCore, QtGui from ui_testparse import Ui_testpa

[Qgis-user] convert xml into variable with type of list/dictionary

2014-04-20 Thread Suryo Miles
Hay i m new in python and i have a task to make plugin in QGIS and use this code to open xml file and then read it in QTextBrowser, this is code i use to open xml file : class testparseDialog(QtGui.QDialog) : def __init__(self): QtGui.QDialog.__init__(self) # Set up the user in

[Qgis-user] (no subject)

2014-04-20 Thread Suryo Miles
Hay i m new in python and i have a task to make plugin in QGIS and use this code to open xml file and then read it in QTextBrowser, this is code i use to open xml file : class testparseDialog(QtGui.QDialog): def __init__(self): QtGui.QDialog.__init__(self) # Set up the user int

[Qgis-user] argument 1 has unexpected type error when try parse xml

2014-04-13 Thread Suryo Miles
I try to parse xml from a string source, I make code to open xml from drive and read it then parse it and show in QlineEdit This code I use: >From PyQt4 import QtCore, QtGui from ui_testparse import Ui_testparse import xml.etree.ElementTree as ETree # create the dialog for zoom to point class t

[Qgis-user] QGIS Plugin to open and parse xml metadata

2014-03-24 Thread Suryo Miles
I make plugin in QGIS to open and read XML file, then parse it and show scale map from it, its a big xml file and line with scale information have format like this ScaleValue and i try code like this to open xml file and then parse it: from PyQt4 import QtCore, QtGuifrom ui_latih import Ui_latih

[Qgis-user] Open Metadata and Show Specific Information

2014-03-11 Thread Suryo Miles
I try make plugin to open and read metadata (.xml) and show information inside metadata like map scale, map fiture and bounding box and auto fill it to QLineEdit This code i use to open metadata cariButton = self.ui.btnCari QtCore.QObject.connect(cariButton, QtCore.SIGNAL('clicked()'),se

Re: [Qgis-user] Plugin QGIS Error "QTextEdit.setPlainText(QString): not enough arguments"

2014-01-01 Thread Suryo Miles
is a QLineEdit, of course) > > Happy New Year!! > > > Jorge Tornero > > > > 2014/1/1 Suryo Miles > >> I try to make save as button but i got this error message when try to >> save file in my directory >> >> File >> "C:\Users\Mr.Pakde/.q

[Qgis-user] Plugin QGIS Error "QTextEdit.setPlainText(QString): not enough arguments"

2014-01-01 Thread Suryo Miles
I try to make save as button but i got this error message when try to save file in my directory File "C:\Users\Mr.Pakde/.qgis2/python/plugins\condition\conditiondialog.py", line 80, in saveAs self._save( _filename ) File "C:\Users\Mr.Pakde/.qgis2/python/plugins\condition\conditiond

[Qgis-user] Need help with write and save as in QGIS plugin

2013-12-29 Thread Suryo Miles
I m trying to make QGIS plugin that compare 2 map scale with Input1 and Input2 and Information about scale when clicked the button, and then i want to write and save it in pdf format file i make my code like this class conditionDialog(QtGui.QDialog): def __init__(self): QtGui.QDialo

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

2013-12-26 Thread Suryo Miles
uot;, line 59, in _save f.write( "%s" % self.nmfile.text() ) AttributeError: 'latihDialog' object has no attribute 'nmfile'<] Can someone help me? On Fri, Dec 27, 2013 at 2:21 AM, Suryo Miles wrote: > It works but now i have a different error message, it sa

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

2013-12-26 Thread Suryo Miles
hon 3 and the code is from older version? Thank you On Wed, Dec 25, 2013 at 6:09 PM, Suryo Miles wrote: > 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 >

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

[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

[Qgis-user] Open and read shapefile plugin in QGIS dufour

2013-12-10 Thread Suryo Miles
I try to make plugin to read shapefile with plugin builder in QGIS and i try to import pyshp in plugin to read shapefiles but i got this error message Traceback (most recent call last): File "C:\Users\Mr.Pakde/.qgis2/python/plugins\shpread\shpreaddialog.py", line 42, in baca shapefile.Reade

[Qgis-user] QGIS plugin to compare 2 different input

2013-12-03 Thread Suryo Miles
I try to make a QGIS plugin to compare 2 different number with 2 input data, and i want to compare input 1 and input 2, but i dont know how to use python condition to compare 2 random number input i try it like this def Compare1(self): input1 = self.ui.lineInput1.text()

[Qgis-user] 'QLineEdit' object has no attribute 'delete' error in QGIS Dufour plugin

2013-12-01 Thread Suryo Miles
When i try to open text in textBrowser with command read i got this error message def cari(self, event=None): #open dialog filename = QtGui.QFileDialog.getOpenFileName(self, 'Open File', '*.xml') if filename: self.ui.lineFile.delete(0, END) self.ui

[Qgis-user] Open File Dialog Plugin Error

2013-11-28 Thread Suryo Miles
I tried to make plugin open file dialog in QGIS Dofour 2.0.1 I write my code like this (attachment) and try to run it in QGIS plugin, but nothing happened ( the GUI show up but when i try to click the button, nothing happened, even a error message is not pop up) since its not show a error message