Re: [Qgis-user] (no subject)

2014-01-01 Thread Akinyemi Emmanuel
I concur.
On Jan 2, 2014 5:26 PM, "Shriramana Sharma"  wrote:

> On Thu, Jan 2, 2014 at 9:16 AM, herath kumara  wrote:
> > Name mail  herath...@gmail.com
> > Password 0718999012
>
> Hello. Please NEVER send your mail password on to a public list.
> Please immediately change your gmail password.
>
> If you have a big file, please upload it somewhere like rapidshare and
> send the link to the list. Please also clearly state your problem so
> others can help you.
>
> @List admin please delete the mail from the archives.
>
> --
> Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] (no subject)

2014-01-01 Thread Shriramana Sharma
On Thu, Jan 2, 2014 at 9:16 AM, herath kumara  wrote:
> Name mail  herath...@gmail.com
> Password 0718999012

Hello. Please NEVER send your mail password on to a public list.
Please immediately change your gmail password.

If you have a big file, please upload it somewhere like rapidshare and
send the link to the list. Please also clearly state your problem so
others can help you.

@List admin please delete the mail from the archives.

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] (no subject)

2014-01-01 Thread herath kumara
 Hi Andrea,

I have problem about coordinate system convert lon.. Lat.. 
Sri Lanka I can not send this convert file to you it is big
Please I make email Please go to this mail and help me
Name mail  herath...@gmail.com
Password 0718999012
Thank you   ___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

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

2014-01-01 Thread Nathan Woodrow
You need to use the toPlainText method.

self.ui.textRec1.toPlainText()

I will also suggest a few other tweaks to your code:

Change this:

QtCore.QObject.connect(Smpan, QtCore.SIGNAL('clicked()'),self.saveAs)


To:

Smpan.clicked.connect(self.saveAs)

Change your _save method to:

def _save(self, simpan):
   with open(simpan, 'w') as f:
 f.write( 'Input 1 :' + str(self.ui.lineInput1.text()) )
 f.write( 'Input 2 :' + str(self.ui.lineInput2.text()) )
 f.write( 'Rekomendasi :' + str(self.ui.textRec1.setPlainText()) )





On Wed, Jan 1, 2014 at 7:15 PM, Suryo Miles  wrote:

> 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\conditiondialog.py",
> line 68, in _save
> f.write( 'Rekomendasi :' + str(self.ui.textRec1.setPlainText() ) )
> TypeError: QTextEdit.setPlainText(QString): not enough arguments
>
> this is my code
>
> Smpan = self.ui.btnSave
> QtCore.QObject.connect(Smpan,
> QtCore.SIGNAL('clicked()'),self.saveAs)
>
> def Compare1(self):
> input1 = self.ui.lineInput1.text()
> input2 = self.ui.lineInput2.text()
> compare = ''
> if input1 == input2:
> compare = 'Data dapat digunakam'
> else:
> compare = 'Data tidak cocok'
> self.ui.textRec1.setPlainText(compare)
>
> def _save(self, simpan):
> f = open( simpan, 'w' )
> f.write( 'Input 1 :' + str(self.ui.lineInput1.text()) )
> f.write( 'Input 2 :' + str(self.ui.lineInput2.text()) )
> f.write( 'Rekomendasi :' +
> str(self.ui.textRec1.setPlainText()) )
> f.close()
> def savefile(self):
> if self.simpan:
>   self._save( "%s" % self.simpan )
> else:
>   self.saveAs()
>
> def saveAs(self):
> tulis = QtGui.QFileDialog(self).getSaveFileName()
> if tulis !="":
> _filename = "%s" % tulis
> self._save( _filename )
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

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

2014-01-01 Thread Suryo Miles
happy new year too

uhm, but yes i use textBrowser to self.ui.textRec1 and it seems textBrowser
didn't accept (.text) and (setPlainText)

i try it and got error message like " X dont have attribute text"


On Wed, Jan 1, 2014 at 1:25 PM, Jorge Tornero  wrote:

> As a quick answer: you're setting the tex(not getting)t in
>
>  f.write( 'Rekomendasi :' + str(self.ui.textRec1.setPlainText()) )
>
> It should be something like
>
>  f.write( 'Rekomendasi :' + str(self.ui.textRec1.text()) )
>
> (I guess that self.ui.textRec1 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/.qgis2/python/plugins\condition\conditiondialog.py",
>> line 80, in saveAs
>> self._save( _filename )
>> File
>> "C:\Users\Mr.Pakde/.qgis2/python/plugins\condition\conditiondialog.py",
>> line 68, in _save
>> f.write( 'Rekomendasi :' + str(self.ui.textRec1.setPlainText() ) )
>> TypeError: QTextEdit.setPlainText(QString): not enough arguments
>>
>> this is my code
>>
>> Smpan = self.ui.btnSave
>> QtCore.QObject.connect(Smpan,
>> QtCore.SIGNAL('clicked()'),self.saveAs)
>>
>> def Compare1(self):
>> input1 = self.ui.lineInput1.text()
>> input2 = self.ui.lineInput2.text()
>> compare = ''
>> if input1 == input2:
>> compare = 'Data dapat digunakam'
>> else:
>> compare = 'Data tidak cocok'
>> self.ui.textRec1.setPlainText(compare)
>>
>> def _save(self, simpan):
>> f = open( simpan, 'w' )
>> f.write( 'Input 1 :' + str(self.ui.lineInput1.text()) )
>> f.write( 'Input 2 :' + str(self.ui.lineInput2.text()) )
>> f.write( 'Rekomendasi :' +
>> str(self.ui.textRec1.setPlainText()) )
>> f.close()
>> def savefile(self):
>> if self.simpan:
>>   self._save( "%s" % self.simpan )
>> else:
>>   self.saveAs()
>>
>> def saveAs(self):
>> tulis = QtGui.QFileDialog(self).getSaveFileName()
>> if tulis !="":
>> _filename = "%s" % tulis
>> self._save( _filename )
>>
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

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

2014-01-01 Thread Jorge Tornero
As a quick answer: you're setting the tex(not getting)t in

 f.write( 'Rekomendasi :' + str(self.ui.textRec1.setPlainText()) )

It should be something like

 f.write( 'Rekomendasi :' + str(self.ui.textRec1.text()) )

(I guess that self.ui.textRec1 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/.qgis2/python/plugins\condition\conditiondialog.py",
> line 80, in saveAs
> self._save( _filename )
> File
> "C:\Users\Mr.Pakde/.qgis2/python/plugins\condition\conditiondialog.py",
> line 68, in _save
> f.write( 'Rekomendasi :' + str(self.ui.textRec1.setPlainText() ) )
> TypeError: QTextEdit.setPlainText(QString): not enough arguments
>
> this is my code
>
> Smpan = self.ui.btnSave
> QtCore.QObject.connect(Smpan,
> QtCore.SIGNAL('clicked()'),self.saveAs)
>
> def Compare1(self):
> input1 = self.ui.lineInput1.text()
> input2 = self.ui.lineInput2.text()
> compare = ''
> if input1 == input2:
> compare = 'Data dapat digunakam'
> else:
> compare = 'Data tidak cocok'
> self.ui.textRec1.setPlainText(compare)
>
> def _save(self, simpan):
> f = open( simpan, 'w' )
> f.write( 'Input 1 :' + str(self.ui.lineInput1.text()) )
> f.write( 'Input 2 :' + str(self.ui.lineInput2.text()) )
> f.write( 'Rekomendasi :' +
> str(self.ui.textRec1.setPlainText()) )
> f.close()
> def savefile(self):
> if self.simpan:
>   self._save( "%s" % self.simpan )
> else:
>   self.saveAs()
>
> def saveAs(self):
> tulis = QtGui.QFileDialog(self).getSaveFileName()
> if tulis !="":
> _filename = "%s" % tulis
> self._save( _filename )
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[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\conditiondialog.py",
line 68, in _save
f.write( 'Rekomendasi :' + str(self.ui.textRec1.setPlainText() ) )
TypeError: QTextEdit.setPlainText(QString): not enough arguments

this is my code

Smpan = self.ui.btnSave
QtCore.QObject.connect(Smpan,
QtCore.SIGNAL('clicked()'),self.saveAs)

def Compare1(self):
input1 = self.ui.lineInput1.text()
input2 = self.ui.lineInput2.text()
compare = ''
if input1 == input2:
compare = 'Data dapat digunakam'
else:
compare = 'Data tidak cocok'
self.ui.textRec1.setPlainText(compare)

def _save(self, simpan):
f = open( simpan, 'w' )
f.write( 'Input 1 :' + str(self.ui.lineInput1.text()) )
f.write( 'Input 2 :' + str(self.ui.lineInput2.text()) )
f.write( 'Rekomendasi :' + str(self.ui.textRec1.setPlainText())
)
f.close()
def savefile(self):
if self.simpan:
  self._save( "%s" % self.simpan )
else:
  self.saveAs()

def saveAs(self):
tulis = QtGui.QFileDialog(self).getSaveFileName()
if tulis !="":
_filename = "%s" % tulis
self._save( _filename )
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user