-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmailautomate.py
More file actions
34 lines (26 loc) · 992 Bytes
/
mailautomate.py
File metadata and controls
34 lines (26 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import sys
import logging
from PySide2 import QtCore, QtWidgets
from view.main_view import MainView
from controller.mainwindow_ctrl import MainController
# Global settings for logging module
logging.basicConfig(
level=logging.INFO,
format='[%(asctime)s] %(levelname)s %(message)s',
datefmt='%H:%M:%S')
logging.addLevelName(logging.DEBUG, '[D]')
logging.addLevelName(logging.INFO, '[I]')
logging.addLevelName(logging.WARNING, '[W]')
logging.addLevelName(logging.ERROR, '[E]')
class App(QtWidgets.QApplication):
def __init__(self, sys_argv):
super(App, self).__init__(sys_argv)
# Set Application Default Settings
QtCore.QCoreApplication.setOrganizationName("DreamingKeldi")
QtCore.QCoreApplication.setApplicationName("MailAutomate")
self.main_view = MainView()
self.main_view.show()
self.main_ctrl = MainController(None, self.main_view)
if __name__ == '__main__':
app = App(sys.argv)
sys.exit(app.exec_())