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

List:       pykde
Subject:    [PyKDE] QDialog and multiple buttons
From:       Tom Brown <tom () thebrownboys ! net>
Date:       2005-08-02 12:53:23
Message-ID: 200508020553.24090.tom () thebrownboys ! net
[Download RAW message or body]

Hi,

I would like to create a dialog with three buttons: 'Heads', 'Tails', 
and 'Cancel'. If I only had the 'Heads' and 'Tails' buttons then my 
life would be easy. I would just connect the 'Heads' button up to the 
accept() slot and connect the 'Tails' button up to the reject() slot. 
What do I do with the 'Cancel' button? Is there a way to detect which 
button was clicked and modify the result so exec_loop() returns 
something other than Accepted or Rejected? Is there a better way of 
doing this?

Thanks,
Tom

_______________________________________________
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