Last change
on this file since 329 was
329,
checked in by sc, 10 years ago
|
- Fixed bad values in emulated ThinkGear? session when exporting to CSV
|
-
Property svn:executable set to
*
|
File size:
988 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | # -*- coding: utf-8 -*- |
---|
3 | |
---|
4 | # Copyright Puzzlebox Productions, LLC (2010-2012) |
---|
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 | __changelog__ = """\ |
---|
10 | Last Update: 2012.03.13 |
---|
11 | """ |
---|
12 | |
---|
13 | import Puzzlebox.Synapse.Configuration as configuration |
---|
14 | import Puzzlebox.Synapse.Interface as tgInterface |
---|
15 | import sys |
---|
16 | |
---|
17 | if configuration.ENABLE_PYSIDE: |
---|
18 | try: |
---|
19 | import PySide as PyQt4 |
---|
20 | from PySide import QtCore, QtGui |
---|
21 | except: |
---|
22 | print "ERROR: Exception importing PySide:", |
---|
23 | print e |
---|
24 | configuration.ENABLE_PYSIDE = False |
---|
25 | else: |
---|
26 | print "INFO: [Synapse:synapse-gui] Using PySide module" |
---|
27 | |
---|
28 | if not configuration.ENABLE_PYSIDE: |
---|
29 | print "INFO: [Synapse:synapse-gui] Using PyQt4 module" |
---|
30 | from PyQt4 import QtCore, QtGui |
---|
31 | |
---|
32 | |
---|
33 | log = None |
---|
34 | app = QtGui.QApplication(sys.argv) |
---|
35 | window = tgInterface.QtUI( \ |
---|
36 | log=log, \ |
---|
37 | DEBUG=configuration.DEBUG, \ |
---|
38 | embedded_mode=False) |
---|
39 | window.show() |
---|
40 | sys.exit(app.exec_()) |
---|
Note: See
TracBrowser
for help on using the repository browser.