Added the Config class back in fro the old project.

This commit is contained in:
Veronica K. B. Olsen
2018-09-22 18:47:01 +02:00
parent 30d5eb53e7
commit 8937229fdb
5 changed files with 188 additions and 14 deletions
+37
View File
@@ -0,0 +1,37 @@
# -*- coding: utf-8 -*
"""novelWriter GUI Main Window
novelWriter GUI Main Window
===============================
Class holding the main window
File History:
Created: 2018-0+-22 [0.1.0]
"""
import logging
import nw
from os import path
from PyQt5.QtWidgets import QWidget
from PyQt5.QtGui import QIcon
logger = logging.getLogger(__name__)
class GuiMain(QWidget):
def __init__(self):
QWidget.__init__(self)
self.mainConf = nw.CONFIG
self.resize(600,500)
self.setWindowTitle("%s [%s]" % (nw.__package__, nw.__version__))
self.setWindowIcon(QIcon(path.join(self.mainConf.appPath,"..","novelWriter.svg")))
self.show()
return
# END Class GuiMain