Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/edit.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-02-26 04:58:43 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-03-02 14:45:11 (GMT)
commit39bfabdfd281c509e0e48580fbdda436423f022b (patch)
treecf4724acdab9caf78d969c5dc8f3b29a30a971d4 /edit.py
parent02efd5d922f337c40f019432b79bcd2497861599 (diff)
Add bookview widget
Diffstat (limited to 'edit.py')
-rw-r--r--edit.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/edit.py b/edit.py
index 7432347..8089bdb 100644
--- a/edit.py
+++ b/edit.py
@@ -22,7 +22,6 @@ from sugar.activity.activity import ActivityToolbox
from GUI_Components.Edit_Pane import Edit_Pane
from GUI_Components.Format_Pane import Format_Pane
from GUI_Components.Image_Pane import Image_Pane
-import document
import book
TABS = (Edit_Pane(),
@@ -39,6 +38,13 @@ class View(gtk.Notebook):
self.append_page(i)
i.show()
+ self.connect('map', self._map_cb)
+
+ def _map_cb(self, widget):
+ index = self.get_current_page()
+ TABS[index].set_source_article(book.wiki.article)
+ TABS[index].set_working_article(book.custom.article)
+
class Toolbar(gtk.Toolbar):
def __init__(self, edit):
gtk.Toolbar.__init__(self)