summaryrefslogtreecommitdiff
path: root/nephilim.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-06-19 10:49:54 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-06-19 10:49:54 +0200
commit27e27a05b82e4a64123c30cc8261e9e69cd1bea3 (patch)
tree953bc9b71b032929878b4702a9915dfd469b8bff /nephilim.py
parentcfbaa2bde498f61bde1d565c66742eb5875d8f2c (diff)
Split some parts of winMain into a subclass of QApplication.
Diffstat (limited to 'nephilim.py')
-rwxr-xr-xnephilim.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/nephilim.py b/nephilim.py
index 4e7ce45..48fe2b9 100755
--- a/nephilim.py
+++ b/nephilim.py
@@ -27,21 +27,14 @@ try:
except ImportError:
sys.exit('PyQt4 not found. Ensure that it is installed.')
-from nephilim.winMain import winMain
-from nephilim.misc import APPNAME, ORGNAME, appIcon
-
+from nephilim.nephilim_app import NephilimApp
def main():
try:
- app = QtGui.QApplication(sys.argv)
- app.setApplicationName(APPNAME)
- app.setOrganizationName(ORGNAME)
- app.setWindowIcon(QtGui.QIcon(appIcon))
+ app = NephilimApp(sys.argv)
- wMain = winMain()
- wMain.show()
app.exec_()
- wMain.quit()
+ app.quit()
except Exception, e:
print_exc()