Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit
diff options
context:
space:
mode:
authoramartin <olpc@xo-00-CE-12.localdomain>2007-07-11 16:56:06 (GMT)
committer amartin <olpc@xo-00-CE-12.localdomain>2007-07-11 16:56:06 (GMT)
commitc6274055a8bb53b979b3dc213d0ea3f96776a47b (patch)
tree1655d81e332c97e40c70e888d344fc62d0745ca7 /Edit
parentb8213c7fad5a10a3742bf78f3d86be5c409283ba (diff)
displayPage bug
Diffstat (limited to 'Edit')
-rw-r--r--Edit/MainWindow.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py
index 3cb2784..d8750f7 100644
--- a/Edit/MainWindow.py
+++ b/Edit/MainWindow.py
@@ -898,7 +898,7 @@ class MainWindow( SubActivity ):
if self.pages_playing[ind] != self.displayedPage:
if ind + 1 < max: predraw = self.pages_playing[ind+1]
else: predraw = self.pages_playing[0]
- self.displayPage( self.pages_playing[ind], predraw )
+ self._displayPage( self.pages_playing[ind], predraw )
else:
self.trackInterface.predrawPage()
@@ -1358,11 +1358,16 @@ class MainWindow( SubActivity ):
adj.set_value( max( adj.value - Config.PAGE_THUMBNAIL_WIDTH, 0) )
def displayPage( self, pageId, nextId = -1 ):
-
if self.playing:
if self.displayedPage != pageId and pageId in self.pages_playing:
self.csnd.loopSetTick( self.page_onset[pageId] )
+ self._displayPage( pageId, nextId )
+
+
+ # only called locally!
+ def _displayPage( self, pageId, nextId = -1 ):
+
self.displayedPage = pageId
page = self.noteDB.getPage(pageId)