From 80c275c47b27e8cf3cd1ca03490975589c01bf20 Mon Sep 17 00:00:00 2001 From: thomahl <thomahl@stud.ntnu.no> Date: Thu, 27 Feb 2020 16:36:56 +0100 Subject: [PATCH] fikser manglende if __name__ dette gjorde at pdoc feilet --- soitool/main_window.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/soitool/main_window.py b/soitool/main_window.py index 53e077f..9ab9389 100644 --- a/soitool/main_window.py +++ b/soitool/main_window.py @@ -132,9 +132,8 @@ class ViewArea(QWidget): self.setLayout(layout) -app = QApplication([]) - -WINDOW = MainWindow() # PYLINT klagde på window, så det ble WINDOW -WINDOW.show() - -sys.exit(app.exec_()) +if __name__ == "__main__": + app = QApplication(sys.argv) + WINDOW = MainWindow() + WINDOW.show() + app.exec_() -- GitLab