Skip to content

Commit 7644df1

Browse files
committed
Added the GuiDocViewer class
1 parent 83169d9 commit 7644df1

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

nw/gui/docviewer.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# -*- coding: utf-8 -*-
2+
"""novelWriter GUI Document Viewer
3+
4+
novelWriter – GUI Document Viewer
5+
===================================
6+
Class holding the document html viewer
7+
8+
File History:
9+
Created: 2019-05-10 [0.0.1]
10+
11+
"""
12+
13+
import logging
14+
import nw
15+
16+
from PyQt5.QtWidgets import QTextBrowser
17+
18+
logger = logging.getLogger(__name__)
19+
20+
class GuiDocViewer(QTextBrowser):
21+
22+
def __init__(self, theParent):
23+
QTextBrowser.__init__(self)
24+
25+
logger.debug("Initialising DocViewer ...")
26+
27+
# Class Variables
28+
self.mainConf = nw.CONFIG
29+
self.theParent = theParent
30+
31+
logger.debug("DocViewer initialisation complete")
32+
33+
return
34+
35+
# END Class GuiDocViewer

0 commit comments

Comments
 (0)