| 1 | #!/usr/bin/env python |
|---|
| 2 | # -*- coding: utf-8 -*- |
|---|
| 3 | # |
|---|
| 4 | # Puzzlebox - Brainstorms - Interface - Network |
|---|
| 5 | # |
|---|
| 6 | # Copyright Puzzlebox Productions, LLC (2010) |
|---|
| 7 | # |
|---|
| 8 | # This code is released under the GNU Pulic License (GPL) version 2 |
|---|
| 9 | # For more information please refer to http://www.gnu.org/copyleft/gpl.html |
|---|
| 10 | |
|---|
| 11 | __changelog__ = """\ |
|---|
| 12 | Last Update: 2010.10.01 |
|---|
| 13 | |
|---|
| 14 | """ |
|---|
| 15 | |
|---|
| 16 | import os, sys |
|---|
| 17 | |
|---|
| 18 | try: |
|---|
| 19 | import PySide as PyQt4 |
|---|
| 20 | from PySide import QtGui |
|---|
| 21 | except: |
|---|
| 22 | print "Using PyQt4 module" |
|---|
| 23 | from PyQt4 import QtGui |
|---|
| 24 | else: |
|---|
| 25 | print "Using PySide module" |
|---|
| 26 | |
|---|
| 27 | #from PyQt4 import QtGui |
|---|
| 28 | #from PySide import QtGui |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | import Puzzlebox.Brainstorms.Interface as client_interface |
|---|
| 32 | #import puzzlebox_logger |
|---|
| 33 | |
|---|
| 34 | ##################################################################### |
|---|
| 35 | # Globals |
|---|
| 36 | ##################################################################### |
|---|
| 37 | |
|---|
| 38 | DEBUG = 1 |
|---|
| 39 | |
|---|
| 40 | ##################################################################### |
|---|
| 41 | # Classes |
|---|
| 42 | ##################################################################### |
|---|
| 43 | |
|---|
| 44 | ##################################################################### |
|---|
| 45 | # Functions |
|---|
| 46 | ##################################################################### |
|---|
| 47 | |
|---|
| 48 | ##################################################################### |
|---|
| 49 | # Main |
|---|
| 50 | ##################################################################### |
|---|
| 51 | |
|---|
| 52 | if __name__ == '__main__': |
|---|
| 53 | |
|---|
| 54 | #log = puzzlebox_logger.puzzlebox_logger(logfile='client_interface') |
|---|
| 55 | log = None |
|---|
| 56 | |
|---|
| 57 | #for each in sys.argv: |
|---|
| 58 | |
|---|
| 59 | #if each.startswith("--host="): |
|---|
| 60 | #server_host = each[ len("--host="): ] |
|---|
| 61 | #if each.startswith("--port="): |
|---|
| 62 | #server_port = each[ len("--port="): ] |
|---|
| 63 | |
|---|
| 64 | app = QtGui.QApplication(sys.argv) |
|---|
| 65 | |
|---|
| 66 | window = client_interface.puzzlebox_brainstorms_client_interface(log, DEBUG=DEBUG) |
|---|
| 67 | window.show() |
|---|
| 68 | |
|---|
| 69 | sys.exit(app.exec_()) |
|---|
| 70 | |
|---|
| 71 | |
|---|