diff options
author | florent <florent.pigout@gmail.com> | 2011-05-26 15:13:51 (GMT) |
---|---|---|
committer | florent <florent.pigout@gmail.com> | 2011-05-26 15:13:51 (GMT) |
commit | 9ecd3a945f2513388ecaee63f87b81c43d188772 (patch) | |
tree | a78296fd424e091f541b4e3422b1934c5a47a521 | |
parent | b568814774852e3d31f27ff1ae8cf422816e1f26 (diff) |
use dnd option in edit screen
-rw-r--r-- | atoidejouer/tools/config.py | 3 | ||||
-rw-r--r-- | atoidejouer/ui/screens.py | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/atoidejouer/tools/config.py b/atoidejouer/tools/config.py index 5ea415c..26980bb 100644 --- a/atoidejouer/tools/config.py +++ b/atoidejouer/tools/config.py @@ -81,6 +81,9 @@ class Config(object): # return it return _dnd + def use_dnd(self): + return self.get_dnd() == 'yes' + def set(self, path, value, type_=str): # set value self.set_value(*path.split(">"), value=value, type_=type_) diff --git a/atoidejouer/ui/screens.py b/atoidejouer/ui/screens.py index 94ccebf..e193273 100644 --- a/atoidejouer/ui/screens.py +++ b/atoidejouer/ui/screens.py @@ -333,7 +333,8 @@ class ScreenStory(graphics.Scene): _image.visible = True else: # draggable for edit only - _draggable = self._set_canvas is False + _draggable = self._set_canvas is False\ + and config.Config().use_dnd() is True # .. _image = self.__update_drawing_area(_current, _size, _align, sequence_name=sequence_name, frame=int(time), @@ -369,6 +370,7 @@ class ScreenStory(graphics.Scene): scale_y=_scale, z_order=_z_order, draggable=draggable) # connect drag if self._set_canvas is True\ + or config.Config().use_dnd() is False\ or self.toolbar.name != 'graphics': pass else: |