Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7e63a1d

Browse files
authored
Merge pull request#21000 from meeseeksmachine/auto-backport-of-pr-20997-on-v3.5.x
Backport PR#20997 on branch v3.5.x (Fix ToolManager + TextBox support.)
2 parents01c9cfd +f36d182 commit7e63a1d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎lib/matplotlib/tests/test_widgets.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,11 @@ def test_CheckButtons():
619619
check.disconnect(cid)
620620

621621

622-
deftest_TextBox():
622+
@pytest.mark.parametrize("toolbar", ["none","toolbar2","toolmanager"])
623+
deftest_TextBox(toolbar):
624+
# Avoid "toolmanager is provisional" warning.
625+
dict.__setitem__(plt.rcParams,"toolbar",toolbar)
626+
623627
fromunittest.mockimportMock
624628
submit_event=Mock()
625629
text_change_event=Mock()

‎lib/matplotlib/widgets.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ def begin_typing(self, x):
12871287
# If using toolmanager, lock keypresses, and plan to release the
12881288
# lock when typing stops.
12891289
toolmanager.keypresslock(self)
1290-
stack.push(toolmanager.keypresslock.release,self)
1290+
stack.callback(toolmanager.keypresslock.release,self)
12911291
else:
12921292
# If not using toolmanager, disable all keypress-related rcParams.
12931293
# Avoid spurious warnings if keymaps are getting deprecated.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp