Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius
diff options
context:
space:
mode:
authorSimon Poirier <simpoir@gmail.com>2009-10-28 06:15:15 (GMT)
committer Simon Poirier <simpoir@gmail.com>2009-10-28 06:15:15 (GMT)
commit53af01c95abe622c0490b43c12439a04aa449509 (patch)
tree6e7ca498415f8e20874c1eaf7b2c19458218eeb3 /tutorius
parentd5e7b4d380dfa9b979071b862e67d29ec127c542 (diff)
addon test extension to check interface contraints
Diffstat (limited to 'tutorius')
-rw-r--r--tutorius/actions.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tutorius/actions.py b/tutorius/actions.py
index bb15459..641da31 100644
--- a/tutorius/actions.py
+++ b/tutorius/actions.py
@@ -135,8 +135,6 @@ class Action(TPropContainer):
"""Base class for Actions"""
def __init__(self):
TPropContainer.__init__(self)
- self.position = (0,0)
- self._drag = None
def do(self, **kwargs):
"""
@@ -165,7 +163,7 @@ class Action(TPropContainer):
self.__edit_img.set_visible_window(True)
self.__edit_img.add(actionicon)
- x, y = self.position
+ x, y = getattr(self, 'position', (0,0))
ObjectStore().activity._overlayer.put(self.__edit_img, x, y)
self.__edit_img.show_all()