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()
            input2 = self.ui.lineInput2.text()
            compare = ''
            if input1 == input2:
                compare = 'number was same'
            else
                compare = 'number not same'
            self.ui.textRec1.setPlainText(compare)

Can someone help me solve this

Thanks Before
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to