def add(self,widget,x=-1,y=-1): if x == -1 or y == -1: BasicContainer.add(self,widget) else: widget.setPosition(x,y) BasicContainer.add(self,widget)