diff --git a/src/View/CheckList/Window.py b/src/View/CheckList/Window.py
index 55edfe8b..8f720e0f 100644
--- a/src/View/CheckList/Window.py
+++ b/src/View/CheckList/Window.py
@@ -174,4 +174,4 @@ class CheckListWindow(ASubMainWindow, ListedSubWindow):
def accept(self):
self._parent.solver_log(self._solver)
- self.end()
+ #self.end()
diff --git a/src/View/MainWindow.py b/src/View/MainWindow.py
index f3ab0acb..a907426d 100644
--- a/src/View/MainWindow.py
+++ b/src/View/MainWindow.py
@@ -4,12 +4,16 @@ import os
from queue import Queue
from PyQt5 import QtGui
+from PyQt5.QtGui import (
+ QKeySequence,
+)
+
from PyQt5.QtCore import (
QTranslator, QEvent
)
from PyQt5.QtWidgets import (
QMainWindow, QApplication, QAction,
- QFileDialog,
+ QFileDialog, QShortcut,
)
from PyQt5.uic import loadUi
@@ -84,7 +88,8 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
self
)
- self.init_callback()
+ self.setup_sc()
+ self.setup_connection()
self.default_style()
self.trans = QTranslator(self)
@@ -108,7 +113,10 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
"""
self.findChild(QAction, action).setEnabled(enable)
- def init_callback(self):
+ def setup_sc(self):
+ self._run_sc = QShortcut(QKeySequence("F5"), self)
+
+ def setup_connection(self):
"""Connect action to callback function
Returns:
@@ -157,6 +165,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
.triggered.connect(actions[action])
# action.triggered.connect(actions[action])
+ self._run_sc.activated.connect(self.run_solver)
def changeEvent(self, event):
if event.type() == QEvent.LanguageChange:
@@ -386,6 +395,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
params.show()
def run_solver(self):
+ if self.model is None:
+ return
+
run = SelectSolverWindow(
study = self.model,
config = self.conf,
diff --git a/src/View/ui/CheckList.ui b/src/View/ui/CheckList.ui
index 06e6403c..001d9230 100644
--- a/src/View/ui/CheckList.ui
+++ b/src/View/ui/CheckList.ui
@@ -63,7 +63,11 @@
false
- Ok
+ Run
+
+
+
+ ressources/player_play.pngressources/player_play.png