Commit 624e9b6f authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

refactoring: Apply PamhyrWindow on Debug window.

Showing with 12 additions and 14 deletions
+12 -14
...@@ -20,8 +20,7 @@ import logging ...@@ -20,8 +20,7 @@ import logging
from tools import trace, timer from tools import trace, timer
from View.ASubWindow import ASubMainWindow from View.Tools.PamhyrWindow import PamhyrWindow
from View.ListedSubWindow import ListedSubWindow
from PyQt5.QtGui import ( from PyQt5.QtGui import (
QKeySequence, QKeySequence,
...@@ -45,20 +44,19 @@ logger = logging.getLogger() ...@@ -45,20 +44,19 @@ logger = logging.getLogger()
_translate = QCoreApplication.translate _translate = QCoreApplication.translate
class ReplWindow(ASubMainWindow, ListedSubWindow): class ReplWindow(PamhyrWindow):
def __init__(self, title="Debug REPL", _pamhyr_ui = "DebugRepl"
study=None, config=None, _pamhyr_name = "Debug REPL"
solver=None, parent=None):
self._title = title
self._study = study
self._config = config
self._parent = parent
def __init__(self, study=None, config=None,
solver=None, parent=None):
super(ReplWindow, self).__init__( super(ReplWindow, self).__init__(
name=self._title, ui="DebugRepl", parent=parent title = self._pamhyr_name,
study = study,
config = config,
options = [],
parent = parent
) )
self.ui.setWindowTitle(self._title)
self.__debug_exec_result__ = None self.__debug_exec_result__ = None
self._history = [] self._history = []
......
...@@ -56,7 +56,7 @@ from View.SolverParameters.Window import SolverParametersWindow ...@@ -56,7 +56,7 @@ from View.SolverParameters.Window import SolverParametersWindow
from View.RunSolver.Window import SelectSolverWindow, SolverLogWindow from View.RunSolver.Window import SelectSolverWindow, SolverLogWindow
from View.CheckList.Window import CheckListWindow from View.CheckList.Window import CheckListWindow
from View.Results.Window import ResultsWindow from View.Results.Window import ResultsWindow
# from View.Debug.Window import ReplWindow from View.Debug.Window import ReplWindow
from Model.Study import Study from Model.Study import Study
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment