'Function to return the size of the input control'

def getWidgetSize(self, maxWidth=20):

    instHeight = (1 + (len(self.selectionInstructions) / maxWidth))
    if self.singleRow:
        widgetHeight = 1
    else:
        widgetHeight = len(self.getList())
    return ((maxWidth / 2), (instHeight + widgetHeight))
