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

Skip to content

Commit 72d2384

Browse files
committed
Deprecate the tk_window_focus function.
The tk backend has been reading directly from rcParams["tk.window_focus"] since 17e6145 (2005), and the function is unused since then.
1 parent 9f74ea7 commit 72d2384

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

doc/api/api_changes/2018-08-17-AL-deprecations.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ API deprecations
33

44
The following API elements are deprecated:
55

6+
- ``tk_window_focus``,
67
- ``mlab.demean``,

lib/matplotlib/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,6 +1379,7 @@ def is_interactive():
13791379
return rcParams['interactive']
13801380

13811381

1382+
@cbook.deprecated("3.1", alternative="rcParams['tk.window_focus']")
13821383
def tk_window_focus():
13831384
"""Return true if focus maintenance under TkAgg on win32 is on.
13841385
This currently works only for python.exe and IPython.exe.

0 commit comments

Comments
 (0)