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 ( object == (QObject *)axis(yLeft) )  // HOW TO THIS IN PYTHON?
        {
        // ...
        }
    }

    return QwtPlot::eventFilter(object, e);
}

Of course I could write for PyQwt a function:

qwt.compareCPlusPlusPointers(SuperObject, DerivedObject)

but if it is really needed, it belongs in PyQt.

Gerard

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to