From pykde Tue Aug 02 21:53:11 2005 From: "Roberto Alsina" Date: Tue, 02 Aug 2005 21:53:11 +0000 To: pykde Subject: Re: [PyKDE] Problem with messagebox Message-Id: <50686.24.232.127.13.1123019591.squirrel () linux ! netline ! com ! ar> X-MARC-Message: https://marc.info/?l=pykde&m=112301821509269 > 2005/8/2, Roberto Alsina : > >> QMessageBox.question returns an integer: >> >> 0 if you click the first button >> 1 for the second (if there is one) >> 2 for the third (if there is one) >> [...] >> It will return 1 in Yes, 0 in No. >> >> This behaviour is exactly like the C++ version. > > Thank you Roberto. However, the Qt help page seems to contradict you: "QMessageBox.question() returns the identity (QMessageBox::Yes, or QMessageBox::No, etc.) of the button that was clicked.". > > http://doc.trolltech.com/3.3/qmessagebox.html#question > > How is this possible? We are both right, there are two QMessagebox::question :-) -- ("\''/").__..-''"`-. . Roberto Alsina `9_ 9 ) `-. ( ).`-._.`) ralsina@kde.org (_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH) _..`-'_..-_/ /-'_.' (l)-'' ((i).' ((!.' Buenos Aires - Argentina Imminentizing the eschaton since 1971. _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde