Ignore:
Timestamp:
07/11/10 11:59:28 (11 years ago)
Author:
sc
Message:
  • PySide? import attempted before PyQt4 where available
  • problem specifying port when calling socket.listen on QTcpServer
File:
1 edited

Legend:

Unmodified
Added
Removed
  • remote_control/puzzlebox_brainstorms_network_server.py

    r109 r111  
    1818import simplejson as json 
    1919 
    20 from PyQt4 import QtCore, QtNetwork 
     20try: 
     21        import PySide as PyQt4 
     22        from PySide import QtCore, QtNetwork 
     23except: 
     24        print "Using PyQt4 module" 
     25        from PyQt4 import QtCore, QtNetwork 
     26else: 
     27        print "Using PySide module" 
     28 
     29#from PyQt4 import QtCore, QtNetwork 
    2130 
    2231import puzzlebox_brainstorms_configuration as configuration 
Note: See TracChangeset for help on using the changeset viewer.