From 7644df1c5227d23cc959d78e663210faf09a60a8 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" Date: Fri, 10 May 2019 18:33:32 +0200 Subject: [PATCH] Added the GuiDocViewer class --- nw/gui/docviewer.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 nw/gui/docviewer.py diff --git a/nw/gui/docviewer.py b/nw/gui/docviewer.py new file mode 100644 index 00000000..9aa654ab --- /dev/null +++ b/nw/gui/docviewer.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +"""novelWriter GUI Document Viewer + + novelWriter – GUI Document Viewer +=================================== + Class holding the document html viewer + + File History: + Created: 2019-05-10 [0.0.1] + +""" + +import logging +import nw + +from PyQt5.QtWidgets import QTextBrowser + +logger = logging.getLogger(__name__) + +class GuiDocViewer(QTextBrowser): + + def __init__(self, theParent): + QTextBrowser.__init__(self) + + logger.debug("Initialising DocViewer ...") + + # Class Variables + self.mainConf = nw.CONFIG + self.theParent = theParent + + logger.debug("DocViewer initialisation complete") + + return + +# END Class GuiDocViewer