|
@@ -19,9 +19,6 @@
|
|
|
#
|
|
|
########################################################################
|
|
|
|
|
|
-import sys
|
|
|
-import signal # ctrl+c keyboard interrupt
|
|
|
-
|
|
|
from PyQt5.QtWidgets import (
|
|
|
QApplication,
|
|
|
QAction,
|
|
@@ -37,18 +34,18 @@ from PyQt5.QtWidgets import (
|
|
|
|
|
|
from PyQt5.QtCore import Qt, QSettings, QByteArray, QSize
|
|
|
|
|
|
-from models.instances import (
|
|
|
+from searxqt.models.instances import (
|
|
|
InstancesModel,
|
|
|
InstanceModelFilter,
|
|
|
InstanceSelecterModel
|
|
|
)
|
|
|
|
|
|
-from models.settings import SettingsModel
|
|
|
-from models.search import SearchModel
|
|
|
+from searxqt.models.settings import SettingsModel
|
|
|
+from searxqt.models.search import SearchModel
|
|
|
|
|
|
-from views.instances import InstancesView
|
|
|
-from views.settings import SettingsWindow
|
|
|
-from views.search import SearchContainer
|
|
|
+from searxqt.views.instances import InstancesView
|
|
|
+from searxqt.views.settings import SettingsWindow
|
|
|
+from searxqt.views.search import SearchContainer
|
|
|
|
|
|
|
|
|
class MainWindow(QMainWindow):
|
|
@@ -212,13 +209,3 @@ class MainWindow(QMainWindow):
|
|
|
'searchModel',
|
|
|
self._searchModel.saveSettings()
|
|
|
)
|
|
|
-
|
|
|
-
|
|
|
-if __name__ == "__main__":
|
|
|
- app = QApplication(sys.argv)
|
|
|
- signal.signal(signal.SIGINT, signal.SIG_DFL) # CTRL + C
|
|
|
-
|
|
|
- window = MainWindow()
|
|
|
- window.show()
|
|
|
-
|
|
|
- sys.exit(app.exec_())
|