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

tkagg: raise each new window; partially addresses #596 #5951

Merged
merged 1 commit into from Feb 3, 2016

Conversation

efiring
Copy link
Member

@efiring efiring commented Jan 31, 2016

This uses the method suggested by @gsonnenf in a comment on #596.

@tacaswell tacaswell added this to the 2.0 (style change major release) milestone Jan 31, 2016
@@ -609,6 +609,9 @@ def destroy(*args):
self.window.update()
else:
self.canvas.draw_idle()
# Raise the new window.
self.canvas.manager.window.attributes('-topmost', 1)
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should make this a method on the FigureManager[TkAgg] - that way we can re-use in code too.

Copy link
Member Author

Choose a reason for hiding this comment

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

Long-term, it might make sense to have a standard API for requests to the window manager. (We can't do more than make requests; each particular window manager has the final say.) I'm reluctant to try to design this now, though, so I'm not sure it would be a good idea to add to our public API by putting this (and the raise() in qt) into methods. It's debatable, and I have been on the fence about it.

Copy link
Member

Choose a reason for hiding this comment

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

@tacaswell
Copy link
Member

This may be addressed by the GUI class structure overhaul which we need to review.

@tacaswell
Copy link
Member

I am 👍 on merging this, but use a very strange window manager so can not meaningfully test it.

pelson added a commit that referenced this pull request Feb 3, 2016
tkagg: raise each new window; partially addresses #596
@pelson pelson merged commit 600464d into matplotlib:master Feb 3, 2016
@QuLogic QuLogic added the GUI: tk label Feb 3, 2016
@efiring efiring deleted the tk_raise branch June 23, 2016 18:17
QuLogic pushed a commit to QuLogic/matplotlib that referenced this pull request Oct 16, 2016
tkagg: raise each new window; partially addresses matplotlib#596
@QuLogic
Copy link
Member

QuLogic commented Oct 18, 2016

Backported to v2.x via 07d17ba.

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

Successfully merging this pull request may close these issues.

None yet

6 participants