pep8: Some modifications to respect pep8 standard code.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-10-11 11:06:45 +02:00
1 parent 8544dd1144
commit fa2454d079
152 files changed
+1626 -1277

No files matched your search

+11 -10
View File
@@ -16,7 +16,8 @@
# -*- coding: utf-8 -*-
import os, sys
import os
import sys
import logging
import subprocess
@@ -55,11 +56,11 @@ class DocWindow(PamhyrWindow):
study=None, config=None,
parent=None):
super(DocWindow, 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._path = self._path_file(filename)
@@ -70,11 +71,11 @@ class DocWindow(PamhyrWindow):
def setup_connection(self):
self.findChild(QAction, "action_back").triggered.connect(self.back)
self.findChild(QAction, "action_forward").triggered.connect(self.forward)
self.findChild(QAction, "action_forward").triggered.connect(
self.forward)
self.findChild(QAction, "action_open").triggered.connect(self.open)
def setup_web_engine(self):
vl = self.find(QVBoxLayout, "verticalLayout")
self._web_view = QWebEngineView()
@@ -97,5 +98,5 @@ class DocWindow(PamhyrWindow):
self._web_view.forward()
def open(self):
url = QUrl(f"file://{self._path}")
QDesktopServices.openUrl(url)
url = QUrl(f"file://{self._path}")
QDesktopServices.openUrl(url)