You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to convert someone else's code from Python 2 to 3, which requires an upgrade from PyQt4 to PyQt5. I tried using this tool to do the pyqt conversion and found that old style calls to pyqtSignature such as:
@pyqtSignature("")
def on_btn_Right_released(self):
self.tcp.sendData(cmd.CMD_CAMERA_STOP)
do not get converted to the new style Signals and Slots. I am new to PyQt, so doing this manually is beyond my current skill level. As far as I can tell, support for pyqtSignature has been dropped from the latest PyQt5 because even if I change @pyqtSignature to @QtCore.pyqtSignature I get the error:
AttributeError: module 'PyQt5.QtCore' has no attribute 'pyqtSignature'
I attached the original code I'm trying to convert. Any assistance would be appreciated! Thanks.
I am attempting to convert someone else's code from Python 2 to 3, which requires an upgrade from PyQt4 to PyQt5. I tried using this tool to do the pyqt conversion and found that old style calls to pyqtSignature such as:
@pyqtSignature("")
def on_btn_Right_released(self):
self.tcp.sendData(cmd.CMD_CAMERA_STOP)
do not get converted to the new style Signals and Slots. I am new to PyQt, so doing this manually is beyond my current skill level. As far as I can tell, support for pyqtSignature has been dropped from the latest PyQt5 because even if I change @pyqtSignature to @QtCore.pyqtSignature I get the error:
AttributeError: module 'PyQt5.QtCore' has no attribute 'pyqtSignature'
I attached the original code I'm trying to convert. Any assistance would be appreciated! Thanks.
main.txt
The text was updated successfully, but these errors were encountered: