diff options
Diffstat (limited to 'Toolbars.py')
-rw-r--r-- | Toolbars.py | 60 |
1 files changed, 37 insertions, 23 deletions
diff --git a/Toolbars.py b/Toolbars.py index b1df153..2dc5c30 100644 --- a/Toolbars.py +++ b/Toolbars.py @@ -32,9 +32,15 @@ except ImportError: print 'NO SE ESTA EN SUGAR.. SALIENDO' sys.exit() Fonts = Combo() -Fonts.set_items(["Purisa 8", "Purisa 12", "Purisa 24", "Monospace 8", "Monospace 12", "Monospace 24", "Times New Roman 8", "Times New Roman 12", "Times New Roman 24", "FreeSans 8", "FreeSans 12", "FreeSans 24"]) +Fonts.set_items(["Purisa 8", "Purisa 12", "Purisa 24", "Monospace 8", + "Monospace 12", "Monospace 24", "Times New Roman 8", + "Times New Roman 12", "Times New Roman 24", "FreeSans 8", + "FreeSans 12", "FreeSans 24"]) Title_Tam = Combo() -Title_Tam.set_items(["Purisa 8", "Purisa 12", "Purisa 24", "Monospace 8", "Monospace 12", "Monospace 24", "Times New Roman 8", "Times New Roman 12", "Times New Roman 24", "FreeSans 8", "FreeSans 12", "FreeSans 24"]) +Title_Tam.set_items(["Purisa 8", "Purisa 12", "Purisa 24", "Monospace 8", + "Monospace 12", "Monospace 24", "Times New Roman 8", + "Times New Roman 12", "Times New Roman 24", "FreeSans 8", + "FreeSans 12", "FreeSans 24"]) ColorLetra = ColorToolButton() ColorTitle = ColorToolButton() ColorFondo = ColorToolButton() @@ -51,12 +57,13 @@ book_button = ToolButton("edit-p") page_button = ToolButton("edit-c") check_button = ToolButton("broken") + def Color_Toolbar(toolbar): color_button = ToolbarButton(icon_name='color-preview') color_toolbar = gtk.Toolbar() - ColorContentLabel = gtk.Label(_('Color for content')) # Duda ¿Es content o context? - ColorFondoLabel = gtk.Label(_('Color for page')) - ColorTitleLabel = gtk.Label(_('Color for title')) + ColorContentLabel = gtk.Label(_('Text color')) + ColorFondoLabel = gtk.Label(_('Page color')) + ColorTitleLabel = gtk.Label(_('Title color')) # Contenido del libro Item = gtk.ToolItem() Item.add(ColorContentLabel) @@ -84,6 +91,8 @@ def Color_Toolbar(toolbar): color_button.props.page = color_toolbar color_toolbar.show_all() toolbar.toolbar.insert(color_button, -1) + + def Text_Toolbar(toolbar): text_button = ToolbarButton(icon_name="format-text-size") text_toolbar = gtk.Toolbar() @@ -114,6 +123,8 @@ def Text_Toolbar(toolbar): text_toolbar.show_all() text_button.props.page = text_toolbar toolbar.toolbar.insert(text_button, -1) + + def Read_Toolbar(toolbar): # read toolbar read_button = ToolbarButton(icon_name="read") @@ -146,6 +157,8 @@ def Read_Toolbar(toolbar): tutorial.show() credits.show() toolbar.toolbar.insert(read_button, -1) + + def Write_Toolbar(toolbar): # write toolbar write_button = ToolbarButton(icon_name="edit") @@ -169,27 +182,28 @@ def Write_Toolbar(toolbar): write_button.props.page = write_toolbar write_toolbar.show_all() toolbar.toolbar.insert(write_button, -1) + def Ayuda(toolbar): Boton_Ayuda = Ayudas() # Porfavor, traducir esto al ingles! # - Boton_Ayuda.add_section(_("Crear un libro")) - Boton_Ayuda.add_paragraph(_("Para crear un nuevo libro debes hacer click en el icono"),'edit') - Boton_Ayuda.add_paragraph(_("Posterior a esto haz click en:"),'new') - Boton_Ayuda.add_section(_("Editar un libro")) - Boton_Ayuda.add_paragraph(_("Para editar el libro debes hacer click en"),'edit') - Boton_Ayuda.add_paragraph(_("Luego haz click en:"),'edit-c') - Boton_Ayuda.add_section(_("Editar las propiedades")) - Boton_Ayuda.add_paragraph(_("Para editar las propiedades debes hacer click en"),'edit') - Boton_Ayuda.add_paragraph(_("Despues haz click en:"),'edit-p') - Boton_Ayuda.add_section(_("Leer un libro")) - Boton_Ayuda.add_paragraph(_("Para leer un libro debes hacer click en:"),'read') - Boton_Ayuda.add_paragraph(_("Si quieres ir a la primer página debes hacer click en:"),'home') - Boton_Ayuda.add_paragraph(_("Si quieres cargar tu libro haz click en:"),'open-from-journal') - Boton_Ayuda.add_paragraph(_("Si te interesan los créditos haz click en:"),'credits') - Boton_Ayuda.add_section(_("Editar la 'letra'")) - Boton_Ayuda.add_paragraph(_("Para editar la tipografía de un libro debes hacer click en:"),'format-text-size') - Boton_Ayuda.add_paragraph(_("Si tu quieres editar el nombre de la tipografía deberas hacer click donde dice 'Purisa 8', se desplegara una lista de fuentes. Selecciona una")) - Boton_Ayuda.add_paragraph(_("Si quieres editar el color haz click en:"), 'color-preview') + Boton_Ayuda.add_section(_("Creating a book")) + Boton_Ayuda.add_paragraph(_("To create a new book, click on"),'edit') + Boton_Ayuda.add_paragraph(_("Then click on"),'new') + Boton_Ayuda.add_section(_("Editing a book")) + 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(_("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_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.show() toolbar.toolbar.insert(Boton_Ayuda, -1) |