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

Message ('Cannot emit Qt Signal : ', AttributeError("'MainWindow' object has no attribute 'emit'")) #24

Closed
baugetfa opened this issue Feb 10, 2023 · 1 comment · Fixed by openalea/visualea#31

Comments

@baugetfa
Copy link

This error message is raised in openalea.visualea.node_widget.SignalSlotListener.call_notify. The cause is the obsolete PyQt4 code:

self.qobj().emit(QtCore.Signal("notify"), sender, event

I tried what is given in the documentation but I was enable to get something working. I still got the message has no attribute 'emit'.

@baugetfa
Copy link
Author

I think that in fact the line raising the message is useless. See my proposition with this commit.
Indeed, we manage the notification with notify defined in objects, so why trying using Qt notification.

@pradal pradal linked a pull request Feb 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant