+import os
+import sys
+import argparse
+import signal
+
+from PyQt5 import QtCore, QtWidgets
+
+from .common import Common, SHARE
+from .settings import Settings
+from .launcher import Launcher
+
+
+class Application(QtWidgets.QApplication):
+ """
+ Qt's QApplication class. It has been overridden to support threads.
+ """
+
+ def __init__(self):
+ self.setAttribute(QtCore.Qt.AA_X11InitThreads, True)
+ QtWidgets.QApplication.__init__(self, sys.argv)
+ self.installEventFilter(self)