Changeset 3024

Show
Ignore:
Timestamp:
02/07/08 09:34:42 (10 months ago)
Author:
darren.dale
Message:

silence a PyQt?4 warning message reported on IPython-user
on 2008-02-04

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ipython/trunk/IPython/Shell.py

    r3006 r3024  
    982982 
    983983        from PyQt4 import QtCore, QtGui 
     984 
     985        try: 
     986            # present in PyQt4-4.2.1 or later 
     987            QtCore.pyqtRemoveInputHook() 
     988        except AttributeError: 
     989            pass 
    984990 
    985991        if QtCore.PYQT_VERSION_STR == '4.3': 
  • ipython/trunk/doc/ChangeLog

    r3009 r3024  
     12008-02-07  Darren Dale <darren.dale@cornell.edu> 
     2 
     3        * IPython/Shell.py: Call QtCore.pyqtRemoveInputHook() when creating 
     4        an IPShellQt4. PyQt4-4.2.1 and later uses PyOS_InputHook to improve  
     5        interaction in the interpreter (like Tkinter does), but it seems to  
     6        partially interfere with the IPython implementation and exec_() 
     7        still seems to block. So we disable the PyQt implementation and 
     8        stick with the IPython one for now. 
     9 
    1102008-02-02  Walter Doerwald  <walter@livinglogic.de> 
    211