Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyqtSignature calls are not converted #19

Open
pilotjoe opened this issue Feb 7, 2018 · 0 comments
Open

pyqtSignature calls are not converted #19

pilotjoe opened this issue Feb 7, 2018 · 0 comments

Comments

@pilotjoe
Copy link

pilotjoe commented Feb 7, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant