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

2011-05-03 Thread Hans-Peter Jansen
Hi Brad, sorry for being a little sparse on my reply, but I'm glad, you figured it out with the help of Zoli. As an aside, could you ask kmail to NOT add a Reply-To: header for messages to this list, please? They're a real PITA. Netizens are usually able to decide themself to whom they want to

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] 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] 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