From 86dc0f5436602db178b5f445aad490a2c49b164c Mon Sep 17 00:00:00 2001 From: Marcel Office Desktop Date: Tue, 22 Mar 2022 11:26:29 +0100 Subject: [PATCH] [minor] small style changes --- PyLoT.py | 6 ++---- README.md | 4 ++-- pylot/core/util/widgets.py | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/PyLoT.py b/PyLoT.py index c24a69c5..37e04acb 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -734,11 +734,9 @@ class MainWindow(QMainWindow): if use_logwidget: self.logwidget = LogWidget(parent=None) self.logwidget.show() - self.stdout = self.logwidget.stdout - self.stderr = self.logwidget.stderr - sys.stdout = self.stdout - sys.stderr = self.stderr + sys.stdout = self.logwidget.stdout + sys.stderr = self.logwidget.stderr self.setCentralWidget(_widget) diff --git a/README.md b/README.md index 57fd990f..c113cfbc 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,10 @@ It is highly recommended to use Anaconda for a simple creation of a Python insta Afterwards run (from the PyLoT main directory where the files *requirements.txt* and *pylot.yml* are located) - conda create --name pylot_38 --file requirements.txt + conda env create -f pylot.yml or - conda env create -f pylot.yml + conda create --name pylot_38 --file requirements.txt to create a new Anaconda environment called "pylot_38". diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 4b6c2281..70238e57 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -120,7 +120,7 @@ class LogWidget(QtWidgets.QWidget): self.layout.addWidget(self.tabs) def active_error(self): - if self.current_active_error == False: + if not self.current_active_error: self.current_active_error = True self.show() self.activateWindow()