source: trunk/brainstorms/brainstorms-network.py @ 259

Last change on this file since 259 was 197, checked in by sc, 12 years ago

trunk/synapse/Puzzlebox/Synapse/Interface.py:

  • comment cleanup

Brainstorms:

  • Initial update to proper Python Module support
  • Property svn:executable set to *
File size: 1.7 KB
Line 
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__ = """\
12Last Update: 2010.10.01
13
14"""
15
16import os, sys
17
18try:
19        import PySide as PyQt4
20        from PySide import QtGui
21except:
22        print "Using PyQt4 module"
23        from PyQt4 import QtGui
24else:
25        print "Using PySide module"
26
27#from PyQt4 import QtGui
28#from PySide import QtGui
29
30
31import Puzzlebox.Brainstorms.Interface as client_interface
32#import puzzlebox_logger
33
34#####################################################################
35# Globals
36#####################################################################
37
38DEBUG = 1
39
40#####################################################################
41# Classes
42#####################################################################
43
44#####################################################################
45# Functions
46#####################################################################
47
48#####################################################################
49# Main
50#####################################################################
51
52if __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
Note: See TracBrowser for help on using the repository browser.