Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/atoidejouer/ui/screen/story.py
diff options
context:
space:
mode:
authorFlorent Pigout <florent.pigout@gmail.com>2011-11-07 23:42:34 (GMT)
committer Florent Pigout <florent.pigout@gmail.com>2011-11-07 23:42:34 (GMT)
commiteb7fe0813854fc62d6dc8faa716bc7b9709818a5 (patch)
tree23ab75e7604f75d295e344fc02426efb9ee799f9 /atoidejouer/ui/screen/story.py
parentebc1dff2de7249e27c5ccc93c176b8ab93e3f0a0 (diff)
small ui enhancement: go to story when select story - show edit panel when click picture
Diffstat (limited to 'atoidejouer/ui/screen/story.py')
-rw-r--r--atoidejouer/ui/screen/story.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/atoidejouer/ui/screen/story.py b/atoidejouer/ui/screen/story.py
index ef53f60..60aec88 100644
--- a/atoidejouer/ui/screen/story.py
+++ b/atoidejouer/ui/screen/story.py
@@ -27,7 +27,10 @@ def _on_drag_finish(image, event, scene, key, image_size):
# logger.debug('[ui.screen.story] _on_drag_finish - rowcount: %s' % rowcount)
# DEBUG
# refresh
- scene.toolbar.activity.get_current_screen().refresh(key=key)
+ _scr = scene.toolbar.activity.get_current_screen()
+ _scr.refresh(key=key)
+ # set note edit page
+ _scr.panel_edit._notebook.set_current_page(0)
def _on_click(image, event, scene, key):
@@ -37,7 +40,10 @@ def _on_click(image, event, scene, key):
# invalidate key
key = None
# refresh
- scene.toolbar.activity.get_current_screen().refresh(key=key)
+ _scr = scene.toolbar.activity.get_current_screen()
+ _scr.refresh(key=key)
+ # set note edit page
+ _scr.panel_edit._notebook.set_current_page(0)
class ScreenStory(graphics.Scene):