Lyrics: add a settings widget.
[nephilim.git] / nephilim.py
blob4e7ce45d6b49d422a4d3a7d97fd6feb9c4cff375
1 #!/usr/bin/python
3 # nephilim.py
6 # Copyright (C) 2008 jerous <jerous@gmail.com>
7 # Copyright (C) 2009 Anton Khirnov <wyskas@gmail.com>
9 # Nephilim is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # Nephilim is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with Nephilim. If not, see <http://www.gnu.org/licenses/>.
23 import sys
24 from traceback import print_exc
25 try:
26 from PyQt4 import QtGui
27 except ImportError:
28 sys.exit('PyQt4 not found. Ensure that it is installed.')
30 from nephilim.winMain import winMain
31 from nephilim.misc import APPNAME, ORGNAME, appIcon
34 def main():
35 try:
36 app = QtGui.QApplication(sys.argv)
37 app.setApplicationName(APPNAME)
38 app.setOrganizationName(ORGNAME)
39 app.setWindowIcon(QtGui.QIcon(appIcon))
41 wMain = winMain()
42 wMain.show()
43 app.exec_()
44 wMain.quit()
45 except Exception, e:
46 print_exc()
48 if __name__ == "__main__":
49 main()