hnn
hnn copied to clipboard
Python 11 UI issue: setGeometry(self, a0: QRect): argument 1 has unexpected type 'float'
The issue below prevents the loading of the UI with a Python 11 based setup.
Traceback (most recent call last):
File "/opt/user/hnn/hnn_source_code/hnn.py", line 37, in <module>
runqt5()
File "/opt/user/hnn/hnn_source_code/hnn.py", line 26, in runqt5
ex = HNNGUI()
^^^^^^^^
File "/opt/user/hnn/hnn_source_code/hnn_qt5.py", line 3347, in __init__
self.initUI()
File "/opt/user/hnn/hnn_source_code/hnn_qt5.py", line 4008, in initUI
setscalegeomcenter(self, 1500, 1300) # start GUI in center of screenm, scale based on screen w x h
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/user/hnn/hnn_source_code/gutils.py", line 53, in setscalegeomcenter
dlg.setGeometry(x, y, int(nw), int(nh))
TypeError: arguments did not match any overloaded call:
setGeometry(self, a0: QRect): argument 1 has unexpected type 'float'
setGeometry(self, ax: int, ay: int, aw: int, ah: int): argument 1 has unexpected type 'float'