Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56ee1b2 + 5735261 commit af1bce3Copy full SHA for af1bce3
1 file changed
lib/matplotlib/backends/backend_wx.py
@@ -121,7 +121,7 @@ class TimerWx(TimerBase):
121
'''
122
123
def __init__(self, *args, **kwargs):
124
- if isinstance(args[0], wx.EvtHandler):
+ if args and isinstance(args[0], wx.EvtHandler):
125
cbook.warn_deprecated(
126
"3.0", "Passing a wx.EvtHandler as first argument to the "
127
"TimerWx constructor is deprecated since %(version)s.")
0 commit comments