def METHOD_NAME(self, parent):
    group = qt.QButtonGroup()
    group.setExclusive(True)
    panel = qt.QWidget(parent)
    panel.setLayout(qt.QHBoxLayout())
    for size in [16, 24, 32]:
        button = qt.QPushButton("%spx" % size, panel)
        button.clicked.connect(functools.partial(self.setIconSize, size))
        button.setCheckable(True)
        panel.layout().addWidget(button)
        group.addButton(button)
    self.__sizeGroup = group
    button.setChecked(True)
    return panel