Hi all, 

I apologize in advance that my code isn't directly related to maya.
I have created 4 radio buttons, where 2 of each buttons are created and 
sorted into 2 different layouts.
Only 1 radio button will be checked in each layout.

My code is as follows:
       
        time_first_hbox = QtGui.QHBoxLayout()
        start_rbtn = QtGui.QRadioButton("Start")
        min_rbtn = QtGui.QRadioButton("Min")
        min_rbtn.setChecked(True)
        time_first_hbox.addWidget(start_rbtn)
        time_first_hbox.addWidget(min_rbtn)
    
        time_last_hbox = QtGui.QHBoxLayout()
        end_rbtn = QtGui.QRadioButton("End")
        max_rbtn = QtGui.QRadioButton("Max")
        max_rbtn.setChecked(True)
        time_last_hbox.addWidget(end_rbtn)
        time_last_hbox.addWidget(max_rbtn)
    
        options_time_hbox = QtGui.QHBoxLayout()
        options_time_hbox.addLayout(time_first_hbox)
        options_time_hbox.addLayout(time_last_hbox)


While both the `Min` and `Max` buttons are set to checked as default, when 
I tried to select `End` button, instead of the default `Max` selection 
moved to `End`, it was `Min` that was moved.
As a result, the (user) selection is only limited to `Start/ Min/ End` 
 while `Max` will always be checked..

I had thought that if I had created 2 different layouts, the radio buttons 
selection will be limited to those within the layout (Start/Min) and 
(End/Max).
Am I missing something here?

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/3ae4a510-45c3-4da6-8e40-06cc35ce930b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to