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

Appearance settings

Commit c65ce46

Browse filesBrowse files
authored
Merge pull request #26894 from anntzer/ti
Deprecate setting the timer interval while starting it.
2 parents eece60a + 78904b6 commit c65ce46
Copy full SHA for c65ce46

File tree

Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*interval* parameter of ``TimerBase.start``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
Setting the timer *interval* while starting it is deprecated. The interval can
5+
be specified instead in the timer constructor, or by setting the
6+
``timer.interval`` attribute.

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,7 @@ def __del__(self):
11171117
"""Need to stop timer and possibly disconnect timer."""
11181118
self._timer_stop()
11191119

1120+
@_api.delete_parameter("3.9", "interval", alternative="timer.interval")
11201121
def start(self, interval=None):
11211122
"""
11221123
Start the timer object.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.