[Pythonmac-SIG] Newbie PyObjC question

Tom Elliott telliott at hsc.wvu.edu
Sun Nov 7 18:01:42 CET 2004


I would like to know how to determine which of several radio buttons 
has been selected by the user, preferably in a simple variable like an 
int.  I can set the buttons as an action for my Controller, and be told 
when the user pushes a button, but there's no info about which button 
was pushed.

In the case of a slider, one can set the slider to be an outlet for the 
Controller and get the value by:

value = self.mySlider.doubleValue()

What is the corresponding call for a set of buttons?  I can't figure 
out anything from the Apple APIs.

Thanks a lot for any help.

Tom Elliott



More information about the Pythonmac-SIG mailing list