Phil Thompson <[EMAIL PROTECTED]> wrote: >>> No it isn't - sip.cast() >> >> What would the correct syntax would be, then? >> >> def pyApp(): >> import sip >> return sip.cast(qApp, App) >> >> gives me a: >> >> SystemError: error return without exception set > > That's the correct syntax. I assume that you have called the App ctor by > the time you call pyApp(). If so, can you put together a small, complete > example?
Well, it doesn't even pass the basic sanity check: >>> from qt import * >>> class App(QApplication): ... pass ... >>> a = App([]) >>> qApp <qt.QApplication object at 0x0080DCF0> >>> import sip >>> sip.cast(qApp, App) Traceback (most recent call last): File "<stdin>", line 1, in ? SystemError: error return without exception set I speculate this got broken when you touched exception support in sip 4.2? -- Giovanni Bajo _______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
