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

    r109 r111  
    99# For more information please refer to http://www.gnu.org/copyleft/gpl.html 
    1010# 
    11 # Last Update: 2010.07.09 
     11# Last Update: 2010.07.10 
    1212# 
    1313##################################################################### 
     
    1616import signal 
    1717 
    18 #try: 
    19         #from PySide import QtCore, QtGui, QtNetwork 
    20 #except: 
    21         #print "Using PyQt4 module" 
    22         #from PyQt4 import QtCore, QtGui, QtNetwork 
    23 #else: 
    24         #print "Using PySide module" 
     18try: 
     19        import PySide as PyQt4 
     20        from PySide import QtCore, QtGui, QtNetwork 
     21except: 
     22        print "Using PyQt4 module" 
     23        from PyQt4 import QtCore, QtGui, QtNetwork 
     24else: 
     25        print "Using PySide module" 
    2526 
    26 from PyQt4 import QtCore, QtGui, QtNetwork 
     27#from PyQt4 import QtCore, QtGui, QtNetwork 
    2728#from PySide import QtCore, QtGui, QtNetwork 
    2829 
Note: See TracChangeset for help on using the changeset viewer.