Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a567e5b

Browse files
committed
DOC: we do not need the blit call in on_draw
on_draw is triggered via the draw_event callback which is processed after the rest of the rendering in finished, but before the buffer is painted to the screen so the `blit` call was at best redundent (causing two copies of the buffer from our side to the GUI side) and at worst causes segfaults in some versions of Qt. Closes #28002
1 parent 955432c commit a567e5b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

galleries/examples/event_handling/path_editor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def on_draw(self, event):
9494
self.background = self.canvas.copy_from_bbox(self.ax.bbox)
9595
self.ax.draw_artist(self.pathpatch)
9696
self.ax.draw_artist(self.line)
97-
self.canvas.blit(self.ax.bbox)
9897

9998
def on_button_press(self, event):
10099
"""Callback for mouse button presses."""

0 commit comments

Comments
 (0)