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

Skip to content

MNT: Deprecate idle_event and remove it from all but wx backends #4544

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 3, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use warn_deprecated
  • Loading branch information
ahaldane committed Jun 23, 2015
commit d631dc17c8d4037fb359deefd8e607d2c0651f44
9 changes: 5 additions & 4 deletions lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
import matplotlib.tight_bbox as tight_bbox
import matplotlib.textpath as textpath
from matplotlib.path import Path
from matplotlib.cbook import mplDeprecation
from matplotlib.cbook import mplDeprecation, warn_deprecated
import matplotlib.backend_tools as tools

try:
Expand Down Expand Up @@ -2332,9 +2332,10 @@ def on_press(event):

"""
if s == 'idle_event':
warnings.warn("idle_event is only implemented for the wx backend, "
"and will be removed in matplotlib 2.1. Use the "
"animations module instead.", mplDeprecation)
warn_deprecated(1.5,
"idle_event is only implemented for the wx backend, and will "
"be removed in matplotlib 2.1. Use the animations module "
"instead.")

return self.callbacks.connect(s, func)

Expand Down