-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Cleanup and py3fy backend_gtk3. #10621
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
Conversation
966f50a
to
761fdb9
Compare
|
||
hbox.show_all() | ||
self.set_extra_widget(hbox) | ||
|
||
def get_filename_from_user (self): | ||
@cbook.deprecated("3.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this get sorted(self.filetypes.items())
as an alternative?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added, but I think this is such an obscure API that I'll skip the note in the deprecation docs.
@@ -340,14 +335,10 @@ def __init__(self, canvas, num): | |||
self.set_window_title("Figure %d" % num) | |||
try: | |||
self.window.set_icon_from_file(window_icon) | |||
except (SystemExit, KeyboardInterrupt): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these not being re-raised anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now catch Exception, which is everything but SystemExit, KeyboardInterrupt (and GeneratorExit, which is irrelevant here). SystemExit and KeyboardInterrupt are not caught at all and just get raised normally.
_pixmapBack was never used on the GTK3 backend (it only exists in the old GTK2 backend).
761fdb9
to
249df18
Compare
_pixmapBack was never used on the GTK3 backend (it only exists in the
old GTK2 backend).
PR Summary
PR Checklist