[PyQt] PyQt4 interactive on Windows and Unix without readline

Phil Thompson phil at riverbankcomputing.co.uk
Mon Jul 9 15:38:45 BST 2007

On Saturday 07 July 2007 9:23 am, Michiel De Hoon wrote:
> Hi everybody,
> I have been happily using PyQt4 for scientific visualization. For this
> purpose, the recent ability of PyQt to handle Python commands
> interactively, as described in
> http://www.riverbankcomputing.com/Docs/PyQt4/pyqt4ref.html#using-pyqt-from-
>th e-python-shell
> is absolutely marvelous. Unfortunately, interactivity is broken if Python
> does not have the readline module (for example on Windows), causing PyQT
> windows to freeze. Below I suggest a modification to PyQt that fixes this
> bug on Windows, as well as on Unix-like systems without readline. The
> suggested code also improves the performance on Unix-like systems that do
> have the readline module. From reading the mailing list, I believe it is
> the appropriate place to submit PyQt patches; please let me know if it is
> not.

Thanks for this - it will be in tonight's snapshot. I reworked the Windows 
version - and it is completely untested.


More information about the PyQt mailing list