Re: [PyKDE] My thinking still wrong?

2006-02-26 Thread David Boddie
On Sun Feb 26 19:31:09, Andreas Pakulat wrote: > On 26.02.06 18:24:27, David Boddie wrote: > > Many people regard threading as a fairly advanced technique, although > > Python's own threading module makes it look almost trivial. > > I find Qt's own threading-implementation quite easy to use too.

Re: [PyKDE] My thinking still wrong?

2006-02-26 Thread Andreas Pakulat
On 26.02.06 18:24:27, David Boddie wrote: > On Sat, 25 Feb 2006, Andreas Pakulat wrote: > > On 25.02.06 09:55:18, Tina Isaksen wrote: > > > > > So I guess I've fallen in the trap of old-time thinking again... > > > > This time it's actually not python-specific "wrong-thinking" ;-);-) This > > would

Re: [PyKDE] My thinking still wrong?

2006-02-26 Thread Tina Isaksen
David Boddie wrote: You now have 2 Options: 1) Call QApplication::processEvents (IIRC that was the name of the function) after setting the text. This makes Qt process any pending events (like the redraw of the label) and then returning to your code-part, AFAIK. Yes, this works quite

Re: [PyKDE] My thinking still wrong?

2006-02-26 Thread David Boddie
On Sat, 25 Feb 2006, Andreas Pakulat wrote: > On 25.02.06 09:55:18, Tina Isaksen wrote: > > > So I guess I've fallen in the trap of old-time thinking again... > > This time it's actually not python-specific "wrong-thinking" ;-);-) This > would've happend to you in C++, Java and any other threaded-

Re: [PyKDE] SIP Leak during exception

2006-02-26 Thread Phil Thompson
On Wednesday 04 January 2006 1:32 am, James Emerton wrote: > Method calling code produced by SIP fails to delete temporary varibles > created by user defined conversion routines. > > I've attached some generated code that demonstrates this. Note the a0 > and a1 are not cleaned up before NULL is re

Re: [PyKDE] tableview and model

2006-02-26 Thread David Boddie
On Sat, 25 Feb 2006 17:12:58, Olivier Fournier wrote: > It's what I 've write in first but it's doen't work > model is a locale  variable for my __init__ classe. This class works for me: from PyQt4.QtCore import QObject from PyQt4.QtGui import QStandardItemModel, QTableView class A(QObject):

Re: [PyKDE] pyqt4 & escape function

2006-02-26 Thread Phil Thompson
On Friday 10 February 2006 10:37 am, Olivier Fournier wrote: > Hi, > > I try to use escape function but I have an error: AttributeError: escape > > can you tell me where I wrong ? > > Thanks > > > ** > from PyQt4 import QtCore > > string = QtCore.QString(