--- a/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py Thu Aug 19 18:36:06 2021 +0200 +++ b/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py Thu Aug 19 18:37:26 2021 +0200 @@ -279,6 +279,9 @@ self.__contextMenuOpenRejections) self.__menu.addSeparator() self.__menu.addAction( + UI.PixmapCache.getIcon("printPreview"), + self.tr("Print Preview"), self.__contextMenuPrintPreviewFile) + self.__menu.addAction( UI.PixmapCache.getIcon("print"), self.tr('Print'), self.__contextMenuPrintFile) self.__menu.addSeparator() @@ -670,6 +673,13 @@ if self.contextMenuEditor: self.vm.printEditor(self.contextMenuEditor) + def __contextMenuPrintPreviewFile(self): + """ + Private method to show a print preview of the selected tab. + """ + if self.contextMenuEditor: + self.vm.printPreviewEditor(self.contextMenuEditor) + def __contextMenuCopyPathToClipboard(self): """ Private method to copy the file name of the selected tab to the