Esempio n. 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
Esempio n. 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
Esempio n. 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)
Esempio n. 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)