Last change
on this file since 315 was
307,
checked in by sc, 9 years ago
|
- Interface_Design regenerated for PySide?
|
-
Property svn:executable set to
*
|
File size:
890 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | # -*- coding: utf-8 -*- |
---|
3 | |
---|
4 | # Copyright Puzzlebox Productions, LLC (2010-2011) |
---|
5 | # |
---|
6 | # This code is released under the GNU Pulic License (GPL) version 2 |
---|
7 | # For more information please refer to http://www.gnu.org/copyleft/gpl.html |
---|
8 | |
---|
9 | import Puzzlebox.Synapse.Configuration as configuration |
---|
10 | import Puzzlebox.Synapse.Interface as tgInterface |
---|
11 | import sys |
---|
12 | |
---|
13 | if configuration.ENABLE_PYSIDE: |
---|
14 | try: |
---|
15 | import PySide as PyQt4 |
---|
16 | from PySide import QtCore, QtGui |
---|
17 | except: |
---|
18 | print "ERROR: Exception importing PySide:", |
---|
19 | print e |
---|
20 | configuration.ENABLE_PYSIDE = False |
---|
21 | else: |
---|
22 | print "INFO: [Synapse:synapse-gui] Using PySide module" |
---|
23 | |
---|
24 | if not configuration.ENABLE_PYSIDE: |
---|
25 | print "INFO: [Synapse:synapse-gui] Using PyQt4 module" |
---|
26 | from PyQt4 import QtCore, QtGui |
---|
27 | |
---|
28 | |
---|
29 | log = None |
---|
30 | app = QtGui.QApplication(sys.argv) |
---|
31 | window = tgInterface.QtUI(log, configuration.DEBUG) |
---|
32 | window.show() |
---|
33 | sys.exit(app.exec_()) |
---|
Note: See
TracBrowser
for help on using the repository browser.