Re: [PyQt] Repr for "value" objects

2007-12-24 Thread Phil Thompson
On Monday 17 December 2007, Giovanni Bajo wrote: > On Mon, 2007-12-17 at 14:48 +, Phil Thompson wrote: > > A list would help. The code would help more (just a patch against the > > source would be fine). > > See the attached patch. These are the ones I care most about. Others > that could be do

Re: [PyQt] Repr for "value" objects

2007-12-17 Thread Giovanni Bajo
On Mon, 2007-12-17 at 14:48 +, Phil Thompson wrote: > A list would help. The code would help more (just a patch against the source > would be fine). See the attached patch. These are the ones I care most about. Others that could be done (if you want to put those on the todo list): QStringMa

Re: [PyQt] Repr for "value" objects

2007-12-17 Thread Andreas Pakulat
On 17.12.07 16:59:51, Giovanni Bajo wrote: > On 12/17/2007 4:25 PM, Andreas Pakulat wrote: > Not really: QPoint can be formatted only to a QDataStream. QTextStream is > limited to basic datatypes like float, char, etc. Ah, I thought qDebug() would be using QTextStream stream-operators, but it has

Re: [PyQt] Repr for "value" objects

2007-12-17 Thread Giovanni Bajo
On 12/17/2007 4:25 PM, Andreas Pakulat wrote: Hi, there are many classes in PyQt which would benefit from a custom __repr__ method to show their contents. For instance, I'm getting tired of having to write: def mousePressEvent(self, e): print e.pos().x(), e.pos().y() instead of:

Re: [PyQt] Repr for "value" objects

2007-12-17 Thread Andreas Pakulat
On 17.12.07 14:48:48, Phil Thompson wrote: > On Monday 17 December 2007, Giovanni Bajo wrote: > > Hi, > > > > there are many classes in PyQt which would benefit from a custom > > __repr__ method to show their contents. For instance, I'm getting tired > > of having to write: > > > > def mousePre

Re: [PyQt] Repr for "value" objects

2007-12-17 Thread Phil Thompson
On Monday 17 December 2007, Giovanni Bajo wrote: > Hi, > > there are many classes in PyQt which would benefit from a custom > __repr__ method to show their contents. For instance, I'm getting tired > of having to write: > > def mousePressEvent(self, e): > print e.pos().x(), e.pos().y()

Re: [PyQt] Repr for "value" objects

2007-12-17 Thread Giovanni Bajo
On 12/17/2007 2:40 PM, Giovanni Bajo wrote: Hi, there are many classes in PyQt which would benefit from a custom __repr__ method to show their contents. For instance, I'm getting tired of having to write: def mousePressEvent(self, e): print e.pos().x(), e.pos().y() instead of:

[PyQt] Repr for "value" objects

2007-12-17 Thread Giovanni Bajo
Hi, there are many classes in PyQt which would benefit from a custom __repr__ method to show their contents. For instance, I'm getting tired of having to write: def mousePressEvent(self, e): print e.pos().x(), e.pos().y() instead of: def mousePressEvent(self, e): print e