lutusp / PLSDR

Software-defined radio application written in Python
GNU General Public License v3.0
156 stars 21 forks source link

Python 3.10 errors: argument 1 has unexpected type 'float' #20

Open n7ihq opened 10 months ago

n7ihq commented 10 months ago

pyqt5 function calls cause "argument 1 has unexpected type 'float'" errors using Python 3.10. This is apparently caused by depreciated implicit conversion after python 3.10. Replacing the code below eliminates the errors.

MyCombo.py line 73: self.control.setCurrentIndex(int(self.index))

Waterfall.py line 65: self.colors.append(QColor.fromHsv(int(h),255,int(cn)))

FFTDisp.py line 254: qp.drawText(int(x-ssz),self.dh-16,s)