You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
self.canvas.draw() # canvas may become blank after saving
Check warning on line 376 in lib/matplotlib/backends/backend_gtk4.py
View check run for this annotation
Codecov/ codecov/patch
lib/matplotlib/backends/backend_gtk4.py#L372-L376
Added lines #L372 - L376 were not covered by tests
except Exception as e:
msg = Gtk.MessageDialog(
Check warning on line 379 in lib/matplotlib/backends/backend_gtk4.py
View check run for this annotation
Codecov/ codecov/patch
lib/matplotlib/backends/backend_gtk4.py#L378-L379
Added lines #L378 - L379 were not covered by tests
transient_for=self.canvas.get_root(),
message_type=Gtk.MessageType.ERROR,
buttons=Gtk.ButtonsType.OK, modal=True,
text=str(e))
msg.show()
Check warning on line 384 in lib/matplotlib/backends/backend_gtk4.py
View check run for this annotation
Codecov/ codecov/patch
lib/matplotlib/backends/backend_gtk4.py#L384
Added line #L384 was not covered by tests
except GLib.Error as error:
print(f"Error opening file: {error.message}")
Check warning on line 387 in lib/matplotlib/backends/backend_gtk4.py
View check run for this annotation
Codecov/ codecov/patch
lib/matplotlib/backends/backend_gtk4.py#L386-L387
Added lines #L386 - L387 were not covered by tests
# self.canvas.draw_idle()
dialog.save(None, None, dialog_save_callback)
Check warning on line 391 in lib/matplotlib/backends/backend_gtk4.py
View check run for this annotation
Codecov/ codecov/patch
lib/matplotlib/backends/backend_gtk4.py#L391
Added line #L391 was not covered by tests
class ToolbarGTK4(ToolContainerBase, Gtk.Box):
Expand Down
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.