def addSelectOptionsRow(self, label, optionsList):
    'Such as a radio group.'
    optionsRow = OptionsRow(self.program, self)
    optionsRow.color = self.program.color.get(u'keyword')
    optionsRow.addLabel(label)
    optionsDict = {}
    optionsRow.beginGroup()
    for key in optionsList:
        optionsDict[key] = False
        optionsRow.addSelection(key, optionsDict)
    optionsRow.endGroup()
    optionsDict[optionsList[0]] = True
    optionsRow.setParent(self)
    return (optionsDict, optionsRow)
Such as a radio group.
def addSelectOptionsRow(self, label, optionsList):
    
    optionsRow = OptionsRow(self.program, self)
    optionsRow.color = self.program.color.get(u'keyword')
    optionsRow.addLabel(label)
    optionsDict = {}
    optionsRow.beginGroup()
    for key in optionsList:
        optionsDict[key] = False
        optionsRow.addSelection(key, optionsDict)
    optionsRow.endGroup()
    optionsDict[optionsList[0]] = True
    optionsRow.setParent(self)
    return (optionsDict, optionsRow)