src/eric7/PdfViewer/PdfViewerWindow.py

branch
pdf_viewer
changeset 9722
63135ab601e7
parent 9713
84e997a2b306
child 9729
f17d787ca4fa
--- a/src/eric7/PdfViewer/PdfViewerWindow.py	Fri Jan 20 17:31:29 2023 +0100
+++ b/src/eric7/PdfViewer/PdfViewerWindow.py	Mon Jan 23 17:12:03 2023 +0100
@@ -11,15 +11,19 @@
 import os
 import pathlib
 
-from PyQt6.QtCore import Qt, pyqtSignal, QSize, pyqtSlot, QPointF
-from PyQt6.QtGui import (
-    QAction, QKeySequence, QActionGroup, QGuiApplication, QClipboard
-)
+from PyQt6.QtCore import QPointF, QSize, Qt, pyqtSignal, pyqtSlot
+from PyQt6.QtGui import QAction, QActionGroup, QClipboard, QGuiApplication, QKeySequence
 from PyQt6.QtPdf import QPdfDocument, QPdfLink
 from PyQt6.QtPdfWidgets import QPdfView
 from PyQt6.QtWidgets import (
-    QWhatsThis, QMenu, QTabWidget, QSplitter, QToolBar, QDialog, QInputDialog,
-    QLineEdit
+    QDialog,
+    QInputDialog,
+    QLineEdit,
+    QMenu,
+    QSplitter,
+    QTabWidget,
+    QToolBar,
+    QWhatsThis,
 )
 
 from eric7 import Preferences
@@ -31,12 +35,12 @@
 from eric7.Globals import recentNamePdfFiles
 from eric7.SystemUtilities import FileSystemUtilities, OSUtilities
 
+from .PdfInfoWidget import PdfInfoWidget
 from .PdfPageSelector import PdfPageSelector
-from .PdfZoomSelector import PdfZoomSelector
+from .PdfSearchWidget import PdfSearchWidget
 from .PdfToCWidget import PdfToCWidget
-from .PdfInfoWidget import PdfInfoWidget
-from .PdfSearchWidget import PdfSearchWidget
 from .PdfView import PdfView
+from .PdfZoomSelector import PdfZoomSelector
 
 
 class PdfViewerWindow(EricMainWindow):
@@ -370,9 +374,7 @@
             self,
             "pdfviewer_goto_end",
         )
-        self.endDocumentAct.setStatusTip(
-            self.tr("Go to the last page of the document")
-        )
+        self.endDocumentAct.setStatusTip(self.tr("Go to the last page of the document"))
         self.endDocumentAct.triggered.connect(self.__endDocument)
         self.__actions.append(self.endDocumentAct)
 
@@ -385,9 +387,7 @@
             self,
             "pdfviewer_goto_back",
         )
-        self.backwardAct.setStatusTip(
-            self.tr("Go back in the view history")
-        )
+        self.backwardAct.setStatusTip(self.tr("Go back in the view history"))
         self.backwardAct.triggered.connect(self.__backInHistory)
         self.__actions.append(self.backwardAct)
 
@@ -400,9 +400,7 @@
             self,
             "pdfviewer_goto_forward",
         )
-        self.forwardAct.setStatusTip(
-            self.tr("Go forward in the view history")
-        )
+        self.forwardAct.setStatusTip(self.tr("Go forward in the view history"))
         self.forwardAct.triggered.connect(self.__forwardInHistory)
         self.__actions.append(self.forwardAct)
 
@@ -415,9 +413,7 @@
             self,
             "pdfviewer_goto_gotopage",
         )
-        self.gotoAct.setStatusTip(
-            self.tr("Jump to a page selected via a dialog")
-        )
+        self.gotoAct.setStatusTip(self.tr("Jump to a page selected via a dialog"))
         self.gotoAct.triggered.connect(self.__gotoPage)
         self.__actions.append(self.gotoAct)
 
@@ -519,7 +515,7 @@
         )
         self.copyAct.triggered.connect(self.__copyText)
         self.__actions.append(self.copyAct)
-        
+
         self.copyAllAct = EricAction(
             self.tr("Copy All Text"),
             self.tr("Copy &All Text"),
@@ -1144,9 +1140,7 @@
         EricMessageBox.about(
             self,
             self.tr("About eric PDF Viewer"),
-            self.tr(
-                "The eric PDF Viewer is a simple component for viewing PDF files."
-            ),
+            self.tr("The eric PDF Viewer is a simple component for viewing PDF files."),
         )
 
     @pyqtSlot()
@@ -1439,7 +1433,7 @@
         else:
             self.__view.setPageMode(QPdfView.PageMode.MultiPage)
             self.__continuousPageAct.setChecked(True)
-        return 
+        return
 
     @pyqtSlot(bool)
     def __toggleSideBar(self, visible):

eric ide

mercurial