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

Skip to content

Commit 64b1992

Browse files
authored
Merge pull request #23499 from anntzer/tbi
Fix outdated comment re: event handlers in test_backends_interactive.
2 parents d892257 + 03307a9 commit 64b1992

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@ def _get_testable_interactive_backends():
7777
# The source of this function gets extracted and run in another process, so it
7878
# must be fully self-contained.
7979
# Using a timer not only allows testing of timers (on other backends), but is
80-
# also necessary on gtk3 and wx, where a direct call to key_press_event("q")
81-
# from draw_event causes breakage due to the canvas widget being deleted too
82-
# early. Also, gtk3 redefines key_press_event with a different signature, so
83-
# we directly invoke it from the superclass instead.
80+
# also necessary on gtk3 and wx, where directly processing a KeyEvent() for "q"
81+
# from draw_event causes breakage as the canvas widget gets deleted too early.
8482
def _test_interactive_impl():
8583
import importlib
8684
import importlib.util

0 commit comments

Comments
 (0)