source: trunk/synapse-gui.py @ 353

Last change on this file since 353 was 353, checked in by sc, 9 years ago

Interface:

  • Updated object name
  • displays devices defaults based on manufacturer of selected model
  • Property svn:executable set to *
File size: 1011 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__ = """\
10Last Update: 2012.03.29
11"""
12
13import Puzzlebox.Synapse.Configuration as configuration
14import Puzzlebox.Synapse.Interface as tgInterface
15import sys
16
17if 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
28if not configuration.ENABLE_PYSIDE:
29        print "INFO: [Synapse:synapse-gui] Using PyQt4 module"
30        from PyQt4 import QtCore, QtGui
31
32
33log = None
34app = QtGui.QApplication(sys.argv)
35window = tgInterface.puzzlebox_synapse_interface( \
36   log=log, \
37   DEBUG=configuration.DEBUG, \
38   embedded_mode=False)
39window.show()
40sys.exit(app.exec_())
Note: See TracBrowser for help on using the repository browser.