diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2011-06-16 06:05:08 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2011-06-16 06:05:08 (GMT) |
commit | 7d28b819c4ec3499201bd66d1b5b1a41534c5f16 (patch) | |
tree | 18d1f226e8c6976903b2c23cee32d7c9b15da673 | |
parent | aaeb1d2f3df27755ffc743bbdf50f3223ca312be (diff) |
Making more comments in all the code
-rw-r--r-- | activity.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/activity.py b/activity.py index 61ede9c..6ba8dbc 100644 --- a/activity.py +++ b/activity.py @@ -42,10 +42,10 @@ class HelloWorldActivity(activity.Activity): self.max_participants = 1 # Toolbar with the new toolbar redesign with old toolbar compatibility - # Barra de herramientas con el nuevo diseno y compatibilidad con las viejas barras. + # Barra de herramientas con el nuevo diseno y compatibilidad con las anteriores barras. OLD_TOOLBAR = False try: - from sugar.graphics.toolbarbox import ToolbarBox, ToolbarButton + from sugar.graphics.toolbarbox import ToolbarBox, ToolbarButton from sugar.activity.widgets import ActivityToolbarButton, StopButton, \ ShareButton, KeepButton, TitleEntry, ActivityButton @@ -54,43 +54,43 @@ class HelloWorldActivity(activity.Activity): if OLD_TOOLBAR: from sugar.activity.activity import Activity, ActivityToolbox - toolbox = ActivityToolbox(self) + toolbox = ActivityToolbox(self) # showing the old bar - mostrando la anterior barra self.set_toolbox(toolbox) toolbox.show() else: - toolbar_box = ToolbarBox() + toolbar_box = ToolbarBox() # toolbox code - codigo de barra de herramienta activity_button = ActivityButton(self) toolbar_box.toolbar.insert(activity_button, 0) activity_button.show() - title_entry = TitleEntry(self) + title_entry = TitleEntry(self) # title code - codigo de titulo toolbar_box.toolbar.insert(title_entry, -1) title_entry.show() - share_button = ShareButton(self) + share_button = ShareButton(self) # share button code - codigo del boton para compartir toolbar_box.toolbar.insert(share_button, -1) share_button.show() - keep_button = KeepButton(self) + keep_button = KeepButton(self) # keep button code - codigo del boton guardar toolbar_box.toolbar.insert(keep_button, -1) keep_button.show() - separator = gtk.SeparatorToolItem() + separator = gtk.SeparatorToolItem() # separator code - codigo para el separador en la barra separator.props.draw = False separator.set_expand(True) toolbar_box.toolbar.insert(separator, -1) separator.show() - stop_button = StopButton(self) + stop_button = StopButton(self) # stop button code - codigo para el boton parar toolbar_box.toolbar.insert(stop_button, -1) stop_button.show() - self.set_toolbar_box(toolbar_box) + self.set_toolbar_box(toolbar_box) # showing the toolbar - mostrando la barra de herramientas toolbar_box.show() # Label with the text, make the string translatable. - # Marca con el texto, haciendo la cadena traducible. + # Marca con el texto, haciendo la cadena traducible. se dibuja la marca en todo el lienzo o area de trabajo label = gtk.Label(_("Hello World!")) self.set_canvas(label) |