I'm new to Python GUI programming and have got stuck on a small problem. Here is my code:
for product in products:
self.productCombo.addItem(product[1],product[0])
self.taxEntry.setText(product[2])
self.igst = product[3]
self.netrate = self.netRateEntry.text()
self.rate =(float(self.netrate)/100)+(float(self.igst))*100
print(self.rate)
self.rateEntry.setText(self.rate)
Getting this error:
File "D:\PyQt\Sellproduct.py", line 180, in Widgets
self.rate =(float(self.netrate)/100)+(float(self.igst))*100
ValueError: could not convert string to float:
print(self.netrate); print(self.igst)and you will see everything.