Re: [PyQt] A Qt error pushed me out of Python

2007-04-15 Thread Gerard Vermeulen
On Sat, 14 Apr 2007 03:01:56 +0200 Giovanni Bajo [EMAIL PROTECTED] wrote: Google will find for you some interesting SF patches with Windows readline implementation for Python, that have been rejected because of side-cases, and IMHO missing the point that an optional incomplete buggy readline

[PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Shriramana Sharma
Please see the following session transcript: $ python Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02) [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 Type help, copyright, credits or license for more information. from PyQt4 . QtGui import QMessageBox QMessageBox . critical (

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Phil Thompson
On Friday 13 April 2007 3:37 pm, Shriramana Sharma wrote: Please see the following session transcript: $ python Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02) [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 Type help, copyright, credits or license for more information.

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Shriramana Sharma
Phil Thompson wrote: It's a fatal error and can't be changed. Why not? If I do a mistake at the Python level, I always get the interpreter back. Is it because the error occurs at the C++ level of Qt? Can't that error be caught and something meaningful printed? I mean, other Python modules

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Paul Giannaros
On Friday 13 April 2007 16:55:02 Shriramana Sharma wrote: Phil Thompson wrote: It's a fatal error and can't be changed. Why not? If I do a mistake at the Python level, I always get the interpreter back. Is it because the error occurs at the C++ level of Qt? Can't that error be caught and

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Gerard Vermeulen
On Fri, 13 Apr 2007 21:25:02 +0530 Shriramana Sharma [EMAIL PROTECTED] wrote: Phil Thompson wrote: It's a fatal error and can't be changed. Why not? If I do a mistake at the Python level, I always get the interpreter back. Is it because the error occurs at the C++ level of Qt? Can't

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Matt Newell
On Friday 13 April 2007 09:43, Gerard Vermeulen wrote: If you are using a version of PyQt before 4.2, you cannot really use PyQt widgets like this because they do not respond to events, since their is no event loop (you did not call yourQApplication._exec()). PyQwt has a module 'iqt' that

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Giovanni Bajo
On 13/04/2007 19.45, Matt Newell wrote: On Friday 13 April 2007 09:43, Gerard Vermeulen wrote: If you are using a version of PyQt before 4.2, you cannot really use PyQt widgets like this because they do not respond to events, since their is no event loop (you did not call

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Gerard Vermeulen
On Fri, 13 Apr 2007 21:36:40 +0200 Giovanni Bajo [EMAIL PROTECTED] wrote: On 13/04/2007 19.45, Matt Newell wrote: On Friday 13 April 2007 09:43, Gerard Vermeulen wrote: If you are using a version of PyQt before 4.2, you cannot really use PyQt widgets like this because they do not respond

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Phil Thompson
On Friday 13 April 2007 8:36 pm, Giovanni Bajo wrote: On 13/04/2007 19.45, Matt Newell wrote: On Friday 13 April 2007 09:43, Gerard Vermeulen wrote: If you are using a version of PyQt before 4.2, you cannot really use PyQt widgets like this because they do not respond to events, since

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Shriramana Sharma
Giovanni Bajo wrote: Yes, but the point is that, since PyQt 4.2, the event loop is always running in *background* at the interpreter prompt. So you can construct I have now compiled and installed PyQt 4.2 with Qt 4.2.3 running behind it, and still I get the same error which I reported at

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Giovanni Bajo
On 14/04/2007 0.55, Shriramana Sharma wrote: Giovanni Bajo wrote: Yes, but the point is that, since PyQt 4.2, the event loop is always running in *background* at the interpreter prompt. So you can construct I have now compiled and installed PyQt 4.2 with Qt 4.2.3 running behind it, and

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Giovanni Bajo
On 13/04/2007 23.12, Gerard Vermeulen wrote: However, it does not work with vanilla PyQt-win-gpl-4.2. Does somebody know how to make it work on Windows? In fact, it does not work on Windows because it relies on readline, and Python does not have any readline implementation under Windows.