Re: [PyKDE] How to test if two PyQt instances wrap the same C++ object?

2003-10-22 Thread Aurélien Gâteau
Le Mercredi 22 Octobre 2003 10:19, Gerard Vermeulen a écrit : if ( object == (QObject *)axis(yLeft) ) // HOW TO THIS IN PYTHON? Not sure at all, but maybe this will do: if object is axis(yLeft): Hope this helps, Aurélien ___ PyKDE

Re: [PyKDE] How to test if two PyQt instances wrap the same C++ object?

2003-10-22 Thread Gerard Vermeulen
On Wed, 22 Oct 2003 10:38:21 +0200 Aurélien Gâteau [EMAIL PROTECTED] wrote: Le Mercredi 22 Octobre 2003 10:19, Gerard Vermeulen a écrit : if ( object == (QObject *)axis(yLeft) ) // HOW TO THIS IN PYTHON? Not sure at all, but maybe this will do: if object is axis(yLeft): Hope

Re: [PyKDE] How to test if two PyQt instances wrap the same C++ object?

2003-10-22 Thread Phil Thompson
On Wednesday 22 October 2003 9:19 am, Gerard Vermeulen wrote: Hi, I have difficulty to translate this C++ idiom in Python: bool Plot::eventFilter(QObject *object, QEvent *e) { if ( e-type() == QEvent::Resize ) { const QSize size = ((QResizeEvent *)e)-size(); if (

Re: [PyKDE] How to test if two PyQt instances wrap the same C++ object?

2003-10-22 Thread Phil Thompson
On Wednesday 22 October 2003 11:36 am, Gerard Vermeulen wrote: On Wed, 22 Oct 2003 10:56:33 +0100 Phil Thompson [EMAIL PROTECTED] wrote: On Wednesday 22 October 2003 9:19 am, Gerard Vermeulen wrote: Hi, I have difficulty to translate this C++ idiom in Python: bool