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

Commitd91fa3a

Browse files
QuLogictacaswell
authored andcommitted
Merge pull request#17618 from tacaswell/doc_event_loop
Doc event loop
1 parentbbd3cf6 commitd91fa3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,7 @@ def start_event_loop(self, timeout=0):
22932293
The event loop blocks until a callback function triggers
22942294
`stop_event_loop`, or *timeout* is reached.
22952295
2296-
If *timeout* is negative, never timeout.
2296+
If *timeout* is0 ornegative, never timeout.
22972297
22982298
Only interactive backends need to reimplement this method and it relies
22992299
on `flush_events` being properly implemented.

‎lib/matplotlib/backends/backend_qt5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def start_event_loop(self, timeout=0):
451451
ifhasattr(self,"_event_loop")andself._event_loop.isRunning():
452452
raiseRuntimeError("Event loop already running")
453453
self._event_loop=event_loop=QtCore.QEventLoop()
454-
iftimeout:
454+
iftimeout>0:
455455
timer=QtCore.QTimer.singleShot(timeout*1000,event_loop.quit)
456456
event_loop.exec_()
457457

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp