mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pep8: Some modifications to respect pep8 standard code.
This commit is contained in:
1 parent
8544dd1144
commit
fa2454d079
152 files changed
+1626
-1277
No files matched your search
@@ -44,6 +44,7 @@ logger = logging.getLogger()
|
||||
|
||||
_translate = QCoreApplication.translate
|
||||
|
||||
|
||||
class ReplWindow(PamhyrWindow):
|
||||
_pamhyr_ui = "DebugRepl"
|
||||
_pamhyr_name = "Debug REPL"
|
||||
@@ -51,11 +52,11 @@ class ReplWindow(PamhyrWindow):
|
||||
def __init__(self, study=None, config=None,
|
||||
solver=None, parent=None):
|
||||
super(ReplWindow, self).__init__(
|
||||
title = self._pamhyr_name,
|
||||
study = study,
|
||||
config = config,
|
||||
options = [],
|
||||
parent = parent
|
||||
title=self._pamhyr_name,
|
||||
study=study,
|
||||
config=config,
|
||||
options=[],
|
||||
parent=parent
|
||||
)
|
||||
|
||||
self.__debug_exec_result__ = None
|
||||
@@ -75,12 +76,14 @@ class ReplWindow(PamhyrWindow):
|
||||
def history_up(self):
|
||||
if self._history_ind < len(self._history):
|
||||
self._history_ind += 1
|
||||
self.set_plaintext_edit_text("plainTextEdit", self._history[-self._history_ind])
|
||||
self.set_plaintext_edit_text(
|
||||
"plainTextEdit", self._history[-self._history_ind])
|
||||
|
||||
def history_down(self):
|
||||
if self._history_ind > 0:
|
||||
self._history_ind -= 1
|
||||
self.set_plaintext_edit_text("plainTextEdit", self._history[-self._history_ind])
|
||||
self.set_plaintext_edit_text(
|
||||
"plainTextEdit", self._history[-self._history_ind])
|
||||
else:
|
||||
self.set_plaintext_edit_text("plainTextEdit", "")
|
||||
|
||||
|
||||
Reference in new issue
Block a user