From dee6412f6beae82952ed0a07fc2bfdfb0cbb3e79 Mon Sep 17 00:00:00 2001 From: Vincent Vinet Date: Thu, 19 Nov 2009 16:33:26 +0000 Subject: refac property editing in the creator --- (limited to 'tutorius/actions.py') diff --git a/tutorius/actions.py b/tutorius/actions.py index bb15459..75c9c9b 100644 --- a/tutorius/actions.py +++ b/tutorius/actions.py @@ -43,6 +43,7 @@ class DragWrapper(object): self._handles = [] # event handlers self._dragging = False # whether a drag is in progress self.position = position # position of the widget + self.moved = False self.draggable = draggable @@ -68,6 +69,7 @@ class DragWrapper(object): xparent, yparent = widget.translate_coordinates(widget.parent, xparent, yparent) self.position = (xparent-xrel, yparent-yrel) + self.moved = True self._widget.parent.move(self._eventbox, *self.position) self._widget.parent.move(self._widget, *self.position) self._widget.parent.queue_draw() -- cgit v0.9.1