-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsynapse-gui.py
More file actions
executable file
·40 lines (33 loc) · 1011 Bytes
/
synapse-gui.py
File metadata and controls
executable file
·40 lines (33 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright Puzzlebox Productions, LLC (2010-2012)
#
# This code is released under the GNU Pulic License (GPL) version 2
# For more information please refer to http://www.gnu.org/copyleft/gpl.html
__changelog__ = """\
Last Update: 2012.03.29
"""
import Puzzlebox.Synapse.Configuration as configuration
import Puzzlebox.Synapse.Interface as tgInterface
import sys
if configuration.ENABLE_PYSIDE:
try:
import PySide as PyQt4
from PySide import QtCore, QtGui
except:
print "ERROR: Exception importing PySide:",
print e
configuration.ENABLE_PYSIDE = False
else:
print "INFO: [Synapse:synapse-gui] Using PySide module"
if not configuration.ENABLE_PYSIDE:
print "INFO: [Synapse:synapse-gui] Using PyQt4 module"
from PyQt4 import QtCore, QtGui
log = None
app = QtGui.QApplication(sys.argv)
window = tgInterface.puzzlebox_synapse_interface( \
log=log, \
DEBUG=configuration.DEBUG, \
embedded_mode=False)
window.show()
sys.exit(app.exec_())