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

Commitbe40c5c

Browse files
committed
wx: Only pass integers to event loop timer.
1 parent62ffa6f commitbe40c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def start_event_loop(self, timeout=0):
568568
raiseRuntimeError("Event loop already running")
569569
timer=wx.Timer(self,id=wx.ID_ANY)
570570
iftimeout>0:
571-
timer.Start(timeout*1000,oneShot=True)
571+
timer.Start(int(timeout*1000),oneShot=True)
572572
self.Bind(wx.EVT_TIMER,self.stop_event_loop,id=timer.GetId())
573573
# Event loop handler for start/stop event loop
574574
self._event_loop=wx.GUIEventLoop()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp