colourterm/colourterm.py

23 lines
600 B
Python
Raw Normal View History

2013-12-05 14:16:09 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import logging
from PyQt4 import QtGui
from colourterm.mainwindow import MainWindow
from colourterm.resources import init_resources, cleanup_resources
if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG)
app = QtGui.QApplication(sys.argv)
app.setOrganizationName(u'Snyman')
app.setOrganizationDomain(u'snyman.info')
app.setApplicationName(u'ColourTerm')
init_resources()
2013-12-10 12:55:20 +00:00
main_window = MainWindow()
main_window.show()
2013-12-05 14:16:09 +00:00
exit_code = app.exec_()
cleanup_resources()
sys.exit(exit_code)