From 405503df01e3300304939517994dfb94677858ed Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 25 Mar 2018 12:47:26 +0100 Subject: connect sisyphus-config to main application --- src/frontend/gui/sisyphus-gui.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/frontend/gui/sisyphus-gui.py') diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 613c433..9ef3550 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -7,6 +7,7 @@ import atexit from collections import OrderedDict from PyQt5 import QtCore, QtGui, QtWidgets, uic from libsisyphus import * +from sisyphusconfig import SisyphusConfig class Sisyphus(QtWidgets.QMainWindow): @@ -44,6 +45,8 @@ class Sisyphus(QtWidgets.QMainWindow): self.inputBox.textEdited.connect(self.searchDatabase) + self.settingsButton.clicked.connect(self.sisyphusSettings) + self.updateWorker = UpdateWorker() self.updateThread = QtCore.QThread() self.updateWorker.moveToThread(self.updateThread) @@ -298,6 +301,10 @@ class Sisyphus(QtWidgets.QMainWindow): def updateStatusBar(self, workerMessage): self.statusBar().showMessage(workerMessage) + def sisyphusSettings(self): + self.window = SisyphusConfig() + self.window.show() + def sisyphusExit(self): self.close() -- cgit v1.2.3