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

EventLoopHelper.gui should expect an IGUI, not GUI instance. #701

Closed
rahulporuri opened this issue Sep 28, 2020 · 0 comments · Fixed by #953
Closed

EventLoopHelper.gui should expect an IGUI, not GUI instance. #701

rahulporuri opened this issue Sep 28, 2020 · 0 comments · Fixed by #953
Labels
toolkit: Qt Issues related to the Qt (PyQt4/PyQt5/PySide/PySide2) backend. type: bug

Comments

@rahulporuri
Copy link
Contributor

class EventLoopHelper(HasStrictTraits):
qt_app = Instance(QtGui.QApplication)
gui = Instance(GUI)

Because the gui trait is defined as Instance(GUI), an object that implements the IGUI interface cannot be set on the trait.

@rahulporuri rahulporuri added type: bug toolkit: Qt Issues related to the Qt (PyQt4/PyQt5/PySide/PySide2) backend. labels Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
toolkit: Qt Issues related to the Qt (PyQt4/PyQt5/PySide/PySide2) backend. type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant