Hi bentraje, the QuickTab Radio widget is obtained by still using the QuickTabCustomGui.
Find below a simplified snippet on how to get the result you'r looking for
import c4d
ID_QUICKTABSRADIO_BAR = 1000 # ID for the quicktab customGui
class QuickTabRadio(c4d.gui.GeDialog):
def __init__(self):
self._quickTabRadio = None # Stores the quicktab custom GUI
def CreateLayout(self):
# Creates a QuickTab Custom Gui
bc = c4d.BaseContainer()
bc.SetBool(c4d.QUICKTAB_SHOWSINGLE, True)
bc.SetBool(c4d.QUICKTAB_NOMULTISELECT, True)
self._quickTabRadio = self.AddCustomGui(ID_QUICKTABSRADIO_BAR, c4d.CUSTOMGUI_QUICKTAB, '',
c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, 0, 0, bc)
self._quickTabRadio.AppendString(100, "FK", False)
self._quickTabRadio.AppendString(200, "IK", False)
return True
def Command (self, id, msg):
if id == ID_QUICKTABSRADIO_BAR and self._quickTabRadio:
if self._quickTabRadio.IsSelected(100):
print "FK is selected"
if self._quickTabRadio.IsSelected(200):
print "IK is selected"
return True
# Main function
def main():
# Initializes the dialog
diag = QuickTabRadio()
# Opens the dialog in modal mode
diag.Open(dlgtype=c4d.DLG_TYPE_MODAL, defaultw=100, defaulth=100)
# Execute main()
if __name__ == '__main__':
main()