diff options
Diffstat (limited to 'abook.py')
-rw-r--r-- | abook.py | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -236,14 +236,20 @@ class AdventureBookActivity(activity.Activity): EventBox.modify_bg(gtk.STATE_NORMAL, Toolbars.ColorFondo.get_color()) # self._start_button_cb(widget) + + def Credits(self, widget): - self._book = credits_book() + self._book = tutorial_book() #credits_book() self._start_book(Toolbars.ColorLetra.get_color()) EventBox.modify_bg(gtk.STATE_NORMAL, Toolbars.ColorFondo.get_color()) + + def Tutorial(self, widget): self._book = tutorial_book() self._start_book(Toolbars.ColorLetra.get_color()) EventBox.modify_bg(gtk.STATE_NORMAL, Toolbars.ColorFondo.get_color()) + + def _edit_book_button_cb(self, widget, Color): Tam = pango.FontDescription('8') Col = gtk.gdk.Color('#ff0000') @@ -574,7 +580,8 @@ class AdventureBookActivity(activity.Activity): pointed_to = True if not pointed_to: print "Page "+ p1.get_title() + " not referenced" - msg_label = gtk.Label("Error: Page '"+ p1.get_title() + "' not referenced from any other page") + msg_label = gtk.Label("Error: Page '"+ p1.get_title() + + "' not referenced from any other page") msg_label.modify_fg(gtk.STATE_NORMAL, Color) msg_label.modify_font(Tam) self._main_view.pack_start(msg_label) @@ -583,7 +590,8 @@ class AdventureBookActivity(activity.Activity): for p1 in self._book.get_pages(): for p in self._book.get_pages(): if p1.get_title() == p.get_title() and p1 != p: - msg_label = gtk.Label("Error: Page title '"+ p1.get_title() + "' is not unique") + msg_label = gtk.Label("Error: Page title '"+ p1.get_title() + + "' is not unique") msg_label.modify_fg(gtk.STATE_NORMAL, Color) msg_label.modify_font(Tam) self._main_view.pack_start(msg_label) |