diff options
Diffstat (limited to 'examples/async')
| -rw-r--r-- | examples/async/eratosthenes/eratosthenes_asyncio.py | 3 | ||||
| -rw-r--r-- | examples/async/minimal/minimal_asyncio.py | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/examples/async/eratosthenes/eratosthenes_asyncio.py b/examples/async/eratosthenes/eratosthenes_asyncio.py index 0cb419817..f24a06145 100644 --- a/examples/async/eratosthenes/eratosthenes_asyncio.py +++ b/examples/async/eratosthenes/eratosthenes_asyncio.py @@ -8,7 +8,6 @@ from PySide6.QtWidgets import (QApplication, QGridLayout, QLabel, QMainWindow, Q from PySide6.QtAsyncio import QAsyncioEventLoopPolicy import asyncio -import signal import sys from random import randint @@ -132,8 +131,6 @@ if __name__ == "__main__": main_window.show() - signal.signal(signal.SIGINT, signal.SIG_DFL) - asyncio.set_event_loop_policy(QAsyncioEventLoopPolicy()) asyncio.ensure_future(eratosthenes.start()) asyncio.get_event_loop().run_forever() diff --git a/examples/async/minimal/minimal_asyncio.py b/examples/async/minimal/minimal_asyncio.py index a66e07ef6..4e6f712c3 100644 --- a/examples/async/minimal/minimal_asyncio.py +++ b/examples/async/minimal/minimal_asyncio.py @@ -7,7 +7,6 @@ from PySide6.QtWidgets import (QApplication, QLabel, QMainWindow, QPushButton, Q from PySide6.QtAsyncio import QAsyncioEventLoopPolicy import asyncio -import signal import sys @@ -60,7 +59,5 @@ if __name__ == "__main__": main_window.show() - signal.signal(signal.SIGINT, signal.SIG_DFL) - asyncio.set_event_loop_policy(QAsyncioEventLoopPolicy()) asyncio.get_event_loop().run_forever() |
