source: trunk/synapse-gui.py @ 306

Last change on this file since 306 was 304, checked in by sc, 10 years ago

Interface:

  • Fixed Bluetooth scanning for devices under recent distributions of Linux
  • added hcitoolScanForRemoteDevices
  • added hcitoolGetActiveConnections

Various:

  • Cleanup of calls to PyQt4 versus PySide? in all modules
  • Consistant passing of DEBUG value between modules
  • Property svn:executable set to *
File size: 874 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
9import Puzzlebox.Synapse.Configuration as configuration
10import Puzzlebox.Synapse.Interface as tgInterface
11import sys
12
13if 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-gui] Using PySide module"
23
24if not configuration.ENABLE_PYSIDE:
25        print "INFO: [synapse-gui] Using PyQt4 module"
26        from PyQt4 import QtCore, QtGui
27
28
29log = None
30app = QtGui.QApplication(sys.argv)
31window = tgInterface.QtUI(log, configuration.DEBUG)
32window.show()
33sys.exit(app.exec_())
Note: See TracBrowser for help on using the repository browser.