Integrated the PDF Viewer into the Tray Starter. pdf_viewer

Fri, 20 Jan 2023 17:31:29 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 20 Jan 2023 17:31:29 +0100
branch
pdf_viewer
changeset 9714
2a3c6f6f88b6
parent 9713
84e997a2b306
child 9722
63135ab601e7

Integrated the PDF Viewer into the Tray Starter.

src/eric7/Tools/TrayStarter.py file | annotate | diff | comparison | revisions
--- a/src/eric7/Tools/TrayStarter.py	Fri Jan 20 17:31:05 2023 +0100
+++ b/src/eric7/Tools/TrayStarter.py	Fri Jan 20 17:31:29 2023 +0100
@@ -139,6 +139,11 @@
             self.tr("Icon Editor"),
             self.__startIconEditor,
         )
+        self.__menu.addAction(
+            EricPixmapCache.getIcon("ericPdf"),
+            self.tr("PDF Viewer"),
+            self.__startPdfViewer,
+        )
         self.__menu.addSeparator()
 
         self.__menu.addAction(
@@ -461,6 +466,12 @@
         """
         self.__startProc("eric7_shell.py")
 
+    def __startPdfViewer(self):
+        """
+        Private slot to start the eric PDF Viewer window.
+        """
+        self.__startProc("eric7_pdf.py")
+
     def __showRecentProjectsMenu(self):
         """
         Private method to set up the recent projects menu.

eric ide

mercurial