Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Toolbars.py
diff options
context:
space:
mode:
Diffstat (limited to 'Toolbars.py')
-rw-r--r--Toolbars.py36
1 files changed, 25 insertions, 11 deletions
diff --git a/Toolbars.py b/Toolbars.py
index 2dc5c30..f8a06e7 100644
--- a/Toolbars.py
+++ b/Toolbars.py
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
# Toolbars.py
# Gabriel, hice esto porque es un revoltijo abook.py :P
+
try:
import gtk
import sys
@@ -59,6 +60,7 @@ check_button = ToolButton("broken")
def Color_Toolbar(toolbar):
+
color_button = ToolbarButton(icon_name='color-preview')
color_toolbar = gtk.Toolbar()
ColorContentLabel = gtk.Label(_('Text color'))
@@ -94,6 +96,7 @@ def Color_Toolbar(toolbar):
def Text_Toolbar(toolbar):
+
text_button = ToolbarButton(icon_name="format-text-size")
text_toolbar = gtk.Toolbar()
A = gtk.Label(_('Content:'))
@@ -126,10 +129,10 @@ def Text_Toolbar(toolbar):
def Read_Toolbar(toolbar):
+
# read toolbar
read_button = ToolbarButton(icon_name="read")
read_toolbar = gtk.Toolbar()
-
restart_button.set_tooltip(_("Start from the begining"))
@@ -150,16 +153,17 @@ def Read_Toolbar(toolbar):
read_toolbar.insert(Sep, -1)
Sep.show()
- credits.set_tooltip(_("Credits"))
+ credits.set_tooltip(_("Tutorial and credits"))
read_toolbar.insert(credits, -1)
- read_toolbar.insert(tutorial, -1)
- tutorial.show()
+# read_toolbar.insert(tutorial, -1)
+# tutorial.show()
credits.show()
toolbar.toolbar.insert(read_button, -1)
def Write_Toolbar(toolbar):
+
# write toolbar
write_button = ToolbarButton(icon_name="edit")
write_toolbar = gtk.Toolbar()
@@ -185,6 +189,7 @@ def Write_Toolbar(toolbar):
def Ayuda(toolbar):
+
Boton_Ayuda = Ayudas()
# Porfavor, traducir esto al ingles! #
Boton_Ayuda.add_section(_("Creating a book"))
@@ -194,16 +199,25 @@ def Ayuda(toolbar):
Boton_Ayuda.add_paragraph(_("To edit the book, click on"),'edit')
Boton_Ayuda.add_paragraph(_("Then click on"),'edit-c')
Boton_Ayuda.add_section(_("Editing the book properties"))
- Boton_Ayuda.add_paragraph(_("To edit the book properties, click on"),'edit')
+ Boton_Ayuda.add_paragraph(_("To edit the book properties, click on"),
+ 'edit')
Boton_Ayuda.add_paragraph(_("Then click on"),'edit-p')
Boton_Ayuda.add_section(_("Reading a book"))
Boton_Ayuda.add_paragraph(_("To read a book, click on"),'read')
- Boton_Ayuda.add_paragraph(_("If you want to go to the first page, click on"),'home')
- Boton_Ayuda.add_paragraph(_("If you want to load a book from the journal, click on"),'open-from-journal')
- Boton_Ayuda.add_paragraph(_("If you want to read a tutorial and the credits, click on"),'credits')
+ Boton_Ayuda.add_paragraph(_("If you want to go to the first page, "
+ "click on"),'home')
+ Boton_Ayuda.add_paragraph(_("If you want to load a book from the "
+ "journal, click on"),'open-from-journal')
+ Boton_Ayuda.add_paragraph(_("If you want to read a tutorial and "
+ "the credits, click on"),'credits')
Boton_Ayuda.add_section(_("Editing the text style"))
- Boton_Ayuda.add_paragraph(_("To change the font size, click on"),'format-text-size')
- Boton_Ayuda.add_paragraph(_("If you want to edit the font name, click on the text box (e.g., 'Purisa 8'); a font list will be displayed. Select one."))
- Boton_Ayuda.add_paragraph(_("If you want to change the color, click on"), 'color-preview')
+ Boton_Ayuda.add_paragraph(_("To change the font size, click on"),
+ 'format-text-size')
+ Boton_Ayuda.add_paragraph(_("If you want to edit the font name, "
+ "click on the text box (e.g., "
+ "'Purisa 8'); a font list will be "
+ "displayed. Select one."))
+ Boton_Ayuda.add_paragraph(_("If you want to change the color, "
+ "click on"), 'color-preview')
Boton_Ayuda.show()
toolbar.toolbar.insert(Boton_Ayuda, -1)