def mouseClick(self, paneRow, paneCol, shift, ctrl, alt):
    col = (self.scrollCol + paneCol)
    offset = 0
    for (index, control) in enumerate(self.controlList):
        width = abs(control['width'])
        if (offset <= col < (offset + width)):
            if (control['type'] == 'selection'):
                name = control['name']
                for element in self.group:
                    elementName = self.controlList[element]['name']
                    self.controlList[element]['dict'][elementName] = False
                control['dict'][name] = True
                self.host.controller.optionChanged(name, control['dict'][name])
                break
            if (control['type'] == 'sort'):
                name = control['name']
                newValue = (not control['dict'][name])
                if (index in self.group):
                    for element in self.group:
                        elementName = self.controlList[element]['name']
                        self.controlList[element]['dict'][elementName] = None
                control['dict'][name] = newValue
                self.host.controller.optionChanged(name, control['dict'][name])
                break
            if (control['type'] == 'toggle'):
                name = control['name']
                control['dict'][name] = (not control['dict'][name])
                self.host.controller.optionChanged(name, control['dict'][name])
                break
        offset += (width + len(control['sep']))
def mouseClick(self, paneRow, paneCol, shift, ctrl, alt):
    col = (self.scrollCol + paneCol)
    offset = 0
    for (index, control) in enumerate(self.controlList):
        width = abs(control['width'])
        if (offset <= col < (offset + width)):
            if (control['type'] == 'selection'):
                name = control['name']
                for element in self.group:
                    elementName = self.controlList[element]['name']
                    self.controlList[element]['dict'][elementName] = False
                control['dict'][name] = True
                self.host.controller.optionChanged(name, control['dict'][name])
                break
            if (control['type'] == 'sort'):
                name = control['name']
                newValue = (not control['dict'][name])
                if (index in self.group):
                    for element in self.group:
                        elementName = self.controlList[element]['name']
                        self.controlList[element]['dict'][elementName] = None
                control['dict'][name] = newValue
                self.host.controller.optionChanged(name, control['dict'][name])
                break
            if (control['type'] == 'toggle'):
                name = control['name']
                control['dict'][name] = (not control['dict'][name])
                self.host.controller.optionChanged(name, control['dict'][name])
                break
        offset += (width + len(control['sep']))