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

List:       pykde
Subject:    Re: [PyKDE] QMessageBox.question bug?
From:       John Ridley <ojokimu () yahoo ! co ! uk>
Date:       2005-05-19 19:27:41
Message-ID: 20050519192741.92077.qmail () web26807 ! mail ! ukl ! yahoo ! com
[Download RAW message or body]


--- 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
[prev in list] [next in list] [prev in thread] [next in thread] 

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