[PyKDE] QMessageBox.question bug?

Martin Wiechert martin.wiechert at gmx.de
Thu May 19 13:21:17 BST 2005


No, I'm using the qt enums. I checked, these are still ints in pyqt.
Again, I did not change the code (which worked), I only updated the platform.
;-(

Martin.


On Thursday 19 May 2005 21:27, John Ridley wrote:
> --- Martin Wiechert wrote:
> > Using standard python shell without iqt makes no difference.
> > [iqt allows to use qt without having to set up an event loop, very
> > handy for interactive sessions.]
>
> Okay, so I just remembered that there is an overloaded version of
> QMessageBox.question et al. It uses custom button texts and returns the
>
> index of the clicked button instead of its "identity":
> >>> # click Yes
>
> ... QMessageBox.question(None,'Caption','Text','Yes','No','Cancel')
> 0
>
>
> Are you somehow passing strings instead of integers?
>
>
> John Ridley
>
>
>
> ___________________________________________________________
> How much free photo storage do you get? Store your holiday
> snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
>
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde




More information about the PyQt mailing list