[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] QMessageBox.question bug?
From:       Martin Wiechert <martin.wiechert () gmx ! de>
Date:       2005-05-19 12:21:17
Message-ID: 200505191421.17873.martin.wiechert () gmx ! de
[Download RAW message or body]

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@mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic