How to convert an input number 34,6 to decimal form 34.6 in python? I made simple program in pyqt4 GUI and in Germany the Germans consider "," as "." so how can I convert my input "a" (line Edit) number to decimal ?
def test(self):
a = int(self.ui.lineEdit.text())
b = int (self.ui.lineEdit_2.text())
Result = math.pow((a+b),2)
self.ui.lineEdit_3.setText(str(Result))