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

Commite48b6b9

Browse files
authored
Merge pull request#17618 from tacaswell/doc_event_loop
Doc event loop
2 parents2348faa +4fb5993 commite48b6b9

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
@@ -2316,7 +2316,7 @@ def start_event_loop(self, timeout=0):
23162316
The event loop blocks until a callback function triggers
23172317
`stop_event_loop`, or *timeout* is reached.
23182318
2319-
If *timeout* is negative, never timeout.
2319+
If *timeout* is0 ornegative, never timeout.
23202320
23212321
Only interactive backends need to reimplement this method and it relies
23222322
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
@@ -426,7 +426,7 @@ def start_event_loop(self, timeout=0):
426426
ifhasattr(self,"_event_loop")andself._event_loop.isRunning():
427427
raiseRuntimeError("Event loop already running")
428428
self._event_loop=event_loop=QtCore.QEventLoop()
429-
iftimeout:
429+
iftimeout>0:
430430
timer=QtCore.QTimer.singleShot(timeout*1000,event_loop.quit)
431431
event_loop.exec_()
432432

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp