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

Make TasksApplication.gui expect an IGUI interface, not a GUI instance #301

Merged
merged 5 commits into from
Sep 1, 2020

Conversation

rahulporuri
Copy link
Contributor

Note that this is already how the GUIApplication behaves. I'm not sure why the TasksApplication behaved differently earlier.

#: The Pyface GUI for the application.
gui = Supports("pyface.i_gui.IGUI")

Sai Rahul Poruri added 4 commits August 28, 2020 12:40
because the TasksApplication expects it's gui trait to be an instance
of GUI object and not an object that supports the IGUI interface

	modified:   envisage/ui/tasks/tests/test_tasks_application.py
Not Instance GUI

	modified:   envisage/ui/tasks/tasks_application.py
	modified:   envisage/ui/tasks/tests/test_tasks_application.py
and remove an unused import

	modified:   envisage/ui/tasks/tests/test_tasks_application.py
	modified:   envisage/ui/tasks/tests/test_tasks_application.py
Copy link
Member

@mdickinson mdickinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One question about the use of Supports.

Copy link
Member

@mdickinson mdickinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mdickinson mdickinson merged commit d437123 into master Sep 1, 2020
@mdickinson mdickinson deleted the fix/expect-interface-not-instance branch September 1, 2020 09:25
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

Successfully merging this pull request may close these issues.

2 participants