Skip to content

Commit e894d08

Browse files
christofsteelhosaka
authored andcommitted
Always import qt library before importing qasync in examples. (CabbageDevelopment#129)
Co-authored-by: Alex March <[email protected]>
1 parent 61b1773 commit e894d08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/qml_httpx/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import asyncio
33
from pathlib import Path
44

5-
from qasync import QEventLoop, QApplication
65
from PySide6.QtCore import QUrl
76
from PySide6.QtQml import QQmlApplicationEngine, qmlRegisterType
7+
from qasync import QEventLoop, QApplication
88

99
from service import ExampleService
1010

examples/qml_httpx/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import httpx
22

3-
from qasync import asyncSlot
43
from PySide6.QtCore import QObject, Signal, Property, Slot
4+
from qasync import asyncSlot
55

66

77
class ExampleService(QObject):

0 commit comments

Comments
 (0)