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_client_interface.py

    r109 r111  
    2121import os, sys 
    2222 
    23 #try: 
    24         #from PySide import QtCore, QtGui, QtNetwork 
    25 #except: 
    26         #print "Using PyQt4 module" 
    27         #from PyQt4 import QtCore, QtGui, QtNetwork 
    28 #else: 
    29         #print "Using PySide module" 
    30  
    31 from PyQt4 import QtCore, QtGui, QtNetwork 
     23try: 
     24        import PySide as PyQt4 
     25        from PySide import QtCore, QtGui, QtNetwork 
     26except: 
     27        print "Using PyQt4 module" 
     28        from PyQt4 import QtCore, QtGui, QtNetwork 
     29else: 
     30        print "Using PySide module" 
     31 
     32#from PyQt4 import QtCore, QtGui, QtNetwork 
    3233#from PySide import QtCore, QtGui, QtNetwork 
    3334 
Note: See TracChangeset for help on using the changeset viewer.