def _move(self, x, y): dx, dy = x-self.x, y-self.y Widget._move(self,x,y) widget = self._label or self._layout if widget: widget.x = widget.x+dx widget.y = widget.y+dy
def _move(self, x, y): dx, dy = x - self.x, y - self.y Widget._move(self, x, y) widget = self._label or self._layout if widget: widget.x = widget.x + dx widget.y = widget.y + dy
def _move(self, x, y): dx, dy = x - self.x, y - self.y Widget._move(self, x, y) for child in self._children: child._move(child.x + dx, child.y + dy)
def _move(self, x, y): dx, dy = x-self.x, y-self.y Widget._move(self,x,y) for child in self._children: child._move(child.x+dx, child.y+dy)