Using global enum class instead of constants in classes.

This commit is contained in:
Veronica K. B. Olsen
2018-11-02 23:22:29 +01:00
parent 8c10251fff
commit e3af43725a
7 changed files with 103 additions and 99 deletions
+1 -5
View File
@@ -17,6 +17,7 @@ from os import path, remove, rename
from PyQt5.QtWidgets import QApplication
from nw.main import NovelWriter
from nw.config import Config
from nw.enum import *
__package__ = "novelWriter"
__author__ = "Veronica Berglyd Olsen"
@@ -62,11 +63,6 @@ logger = logging.getLogger(__name__)
# Load the main config as a global object
CONFIG = Config()
# Constants
DOCTYPE_ABOUT = 0
DOCTYPE_DOC = 1
DOCTYPE_PROJECT = 2
def main(sysArgs):
"""
Parses command line, sets up logging, and launches main GUI.