def OnChanged(self, widget : QtGui.QRadioButton, fn): self.__CheckType(widget) for obj in widget.children(): if self.__IsRadioBtn(obj): obj.clicked.connect(fn)
def __RadioButtonCount(self, widget : QtGui.QRadioButton) -> int: res = 0 for obj in widget.children(): if self.__IsRadioBtn(obj): res += 1 return res