Beispiel #1
0
 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
Beispiel #2
0
 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
Beispiel #3
0
    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)
Beispiel #4
0
    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)