def getWidgetSize(self, maxWidth = 20):
        # calculate the size required for the instructions
        instHeight = 1 + len(self.selectionInstructions)/maxWidth
        if self.singleRow:
            widgetHeight = 1
        else:
            widgetHeight = len(self.getList())
        return (maxWidth/2, instHeight + widgetHeight)

    # -------------------------------------------------------------------------
Get channel type
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3QuestionTypeOptionWidget.getWidgetSize--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/io/pick.py/channel_type