This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This code was helpful, | |
https://stackoverflow.com/questions/32141623/pyqt5-and-asyncio-yield-from-never-finishes | |
""" | |
import os | |
import sys | |
import time | |
import quamash | |
import asyncio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twisted.internet import reactor, protocol, endpoints | |
from twisted.protocols import basic | |
from twisted.internet.defer import Deferred, inlineCallbacks, returnValue | |
from twisted.internet import task | |
from twisted.python import log | |
# log errors inside reactor to stdout | |
from twisted.python.log import startLogging | |
from sys import stdout | |
startLogging(stdout) |