Re: [PyQt] How do I subclass QTextEdit without warnings on close?

2011-05-02 Thread Brad Ralph
Hi Zoli, Thanks you're right. I thought I must have missed the bleeding obvious when it did not work before. It works fine now. Cheers. On Tue, 3 May 2011 01:29:10 PM Zoltan Szalai wrote: > Hi Brad, > > He means that you should call the focusOutEvent of the base class in > your reimplementa

Re: [PyQt] How do I subclass QTextEdit without warnings on close?

2011-05-02 Thread Zoltan Szalai
Hi Brad, He means that you should call the focusOutEvent of the base class in your reimplementation of focusOutEvent. It's desired because QTextEdit reimplements focusOutEvent from QWidget. Something like this: def focusOutEvent(self, e): QtGui.QTextEdit.focusOutEvent(self, e)

Re: [PyQt] How do I subclass QTextEdit without warnings on close?

2011-05-02 Thread Brad Ralph
Hi Pete, Thanks for you reply but I don't understand what you are suggesting as a solution. I tried to take you at your suggestion and replace the line 'def focusOutEvent(self, e):' with 'QtGui.QTextEdit.focusOutEvent(self, e)' but it did not work. (Invalid syntax error). I even tried variation

Re: [PyQt] nmake fatal error while compiling SIP - voidptr.c: error C2039

2011-05-02 Thread Johanna
I commented the line that was giving me problems (in fact, just an argument of the function which doesn't seem too important). Now, I have a linking error : python26.libwrote: > On Mon, 2 May 2011 15:20:03 +0200, Johanna > wrote: > > Well, that's good to know, even if it's not good news for me!

Re: [PyQt] How do I subclass QTextEdit without warnings on close?

2011-05-02 Thread Hans-Peter Jansen
On Monday 02 May 2011, 12:39:33 Brad Ralph wrote: > Hello, > > I am trying to subclass QTextEdit to implement a foucsOutEvent. I > must be doing something wrong however because when I replace the > standard QTextEdit with my subclass I get the following error mesages > when I close the program. (o

[PyQt] ANN: PyQtMobility v1.0.1 Released

2011-05-02 Thread Phil Thompson
PyQtMobility v1.0.1 has been released. This fixes a build problem. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] nmake fatal error while compiling SIP - voidptr.c: error C2039

2011-05-02 Thread Johanna
With 0x0207 it gives me some errors about the else statement. I tried with #if PY_VERSION_HEX > 0x0206 and the following error disappears : NMAKE : fatal error U1077: '"D:\ProgramFiles\Microsoft Visual Studio 9.0\VC\bin\nmake.exe"' : return code '0x2' The others remain though.. ps : sor

[PyQt] ANN: PyQt v4.8.4 and SIP v4.12.2 Released

2011-05-02 Thread Phil Thompson
PyQt v4.8.4 and SIP v4.12.2 have been released and can be downloaded from the usual places. Both releases include relatively minor functional enhancements - see the homepage or the respective NEWS files for the details. Phil ___ PyQt mailing listPyQ

Re: [PyQt] nmake fatal error while compiling SIP - voidptr.c: error C2039

2011-05-02 Thread Phil Thompson
On Mon, 2 May 2011 11:53:14 +0200, Johanna wrote: > Hello, > > I am trying to compile SIP since a few days in order to install PyQt. > I can't find lead on the web so I thought I'd better ask for help here. > > I unzipped the latest sip archive (4.12.1)and run the configure command. > Then when

[PyQt] How do I subclass QTextEdit without warnings on close?

2011-05-02 Thread Brad Ralph
Hello, I am trying to subclass QTextEdit to implement a foucsOutEvent. I must be doing something wrong however because when I replace the standard QTextEdit with my subclass I get the following error mesages when I close the program. (once for each instance of my subclass). I don't when a req

[PyQt] nmake fatal error while compiling SIP - voidptr.c: error C2039

2011-05-02 Thread Johanna
Hello, I am trying to compile SIP since a few days in order to install PyQt. I can't find lead on the web so I thought I'd better ask for help here. I unzipped the latest sip archive (4.12.1)and run the configure command. Then when I tried to run nmake it gives me the following error : .\voidptr

Re: [PyQt] Connect PyQt signal to C++ slot

2011-05-02 Thread Phil Thompson
On Sun, 01 May 2011 20:16:53 -0500, Jack Cosgrove wrote: > I will describe the general task I am performing beforehand as there may > be better way to do it than I am currently trying. > > I am making a Python editor and console using Qt. This includes a > QScintilla editor and a QTextEdit for te