def __init__(self, parent): QSizeGrip.__init__(self, parent) self.__corner = Qt.BottomRightCorner self.resize(self.sizeHint()) self.__updatePos()