2018-07-24 05:50:27 +00:00
|
|
|
#!/usr/bin/env python3
|
2013-12-05 14:16:09 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import sys
|
|
|
|
import logging
|
|
|
|
|
2018-07-24 05:50:27 +00:00
|
|
|
from PyQt5 import QtWidgets
|
2013-12-05 14:16:09 +00:00
|
|
|
|
|
|
|
from colourterm.mainwindow import MainWindow
|
|
|
|
from colourterm.resources import init_resources, cleanup_resources
|
|
|
|
|
2018-07-24 05:50:27 +00:00
|
|
|
if __name__ == '__main__':
|
2013-12-05 14:16:09 +00:00
|
|
|
logging.basicConfig(level=logging.DEBUG)
|
2018-07-24 05:50:27 +00:00
|
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
|
|
app.setOrganizationName('Snyman')
|
|
|
|
app.setOrganizationDomain('snyman.info')
|
|
|
|
app.setApplicationName('ColourTerm')
|
2013-12-05 14:16:09 +00:00
|
|
|
init_resources()
|
2013-12-10 12:55:20 +00:00
|
|
|
main_window = MainWindow()
|
|
|
|
main_window.show()
|
2018-07-24 05:50:27 +00:00
|
|
|
exit_code = app.exec()
|
2013-12-05 14:16:09 +00:00
|
|
|
cleanup_resources()
|
|
|
|
sys.exit(exit_code)
|