Esempio n. 1
0
def create_help(toolbar):
    helpitem = HelpButton()
    toolbar.insert(helpitem, -1)
    helpitem.show()
    helpitem.add_section(_('Basic usage'))
    helpitem.add_paragraph(_('First select data type:'))
    helpitem.add_paragraph(_('The free space in the Journal;'),
                           'import-freespace')
    helpitem.add_paragraph(_('The types of Sugar Activities you have used;'),
                           'import-journal')
    helpitem.add_paragraph(_('The types of blocks used in Turtle Art.'),
                           'import-turtle')
    helpitem.add_paragraph(
        _('The graph title is the same as the Activity title'))

    helpitem.add_paragraph(_('You can change the type of graph:'))
    helpitem.add_paragraph(_('Vertical bars'), 'vbar')
    helpitem.add_paragraph(_('Horizontal bars'), 'hbar')
    helpitem.add_paragraph(_('Lines'), 'line')
    helpitem.add_paragraph(_('Pie'), 'pie')

    helpitem.add_section(_('Saving as an image'))
    helpitem.add_paragraph(
        _('In the activity toolbar you have button to save the graph as an image'
          ), 'save-as-image')
Esempio n. 2
0
 def _create_help_button(self):
     helpitem = HelpButton()
     helpitem.add_section(_('Register'), icon='view-list')
     helpitem.add_paragraph(registerscreen.REGISTER_HELP)
     helpitem.add_section(_('Budget'), icon='budget')
     helpitem.add_paragraph(budgetscreen.BUDGET_HELP)
     helpitem.add_section(_('Chart'), icon='chart')
     helpitem.add_paragraph(chartscreen.CHART_HELP)
     return helpitem
Esempio n. 3
0
 def _create_help_button(self):
     helpitem = HelpButton()
     helpitem.add_section(_('Register'), icon='view-list')
     helpitem.add_paragraph(registerscreen.REGISTER_HELP)
     helpitem.add_section(_('Budget'), icon='budget')
     helpitem.add_paragraph(budgetscreen.BUDGET_HELP)
     helpitem.add_section(_('Chart'), icon='chart')
     helpitem.add_paragraph(chartscreen.CHART_HELP)
     return helpitem
    def make_toolbar(self):
        def make_separator(expand=True):
            separator = Gtk.SeparatorToolItem()
            separator.props.draw = not expand
            separator.set_expand(expand)
            return separator

        toolbarbox = ToolbarBox()
        self.set_toolbar_box(toolbarbox)

        toolbar = toolbarbox.toolbar
        toolbar.insert(ActivityToolbarButton(self), -1)
        toolbar.insert(make_separator(False), -1)

        self.restart_button = ToolButton(icon_name="system-restart")
        self.restart_button.set_tooltip(_("Restart"))
        self.restart_button.props.accelerator = '<Ctrl>N'
        self.restart_button.connect("clicked", self._restart_cb)
        toolbar.insert(self.restart_button, -1)

        self.ok_button = ToolButton(icon_name="dialog-ok")
        self.ok_button.set_tooltip(_("Ok"))
        self.ok_button.set_sensitive(False)
        self.ok_button.props.accelerator = "Return"
        self.ok_button.connect("clicked", self._ok_cb)
        toolbar.insert(self.ok_button, -1)

        item = Gtk.ToolItem()
        toolbar.insert(item, -1)

        self.label = Gtk.Label()
        self.label.modify_font(Pango.FontDescription("Bold"))
        item.add(self.label)

        toolbar.insert(make_separator(True), -1)

        helpbutton = HelpButton()
        helpbutton.add_section(_("Instructions:"))
        helpbutton.add_paragraph(_("Place colors to the last played row."), image="instructions1.png")
        helpbutton.add_paragraph(_("When you complete a row, click on 'Ok button'."), image="instructions2.png")
        helpbutton.add_paragraph(_("Next to the row will appear black and white circles."), image="instructions3.png")
        helpbutton.add_paragraph(_("A black circle means you matched a peg and you placed it correctly."))
        helpbutton.add_paragraph(_("A white circle means you matched a peg and you wrong placed it."))
        helpbutton.add_paragraph(_("The goal is match all pegs in the correct place."))
        toolbar.insert(helpbutton, -1)

        stop_button = StopButton(self)
        toolbar.insert(stop_button, -1)

        toolbar.show_all()
Esempio n. 5
0
    def _setup_toolbars(self):
        ''' Setup the toolbars.. '''

        games_toolbar = Gtk.Toolbar()
        tools_toolbar = Gtk.Toolbar()
        numbers_toolbar = Gtk.Toolbar()
        toolbox = ToolbarBox()

        self.activity_toolbar_button = ActivityToolbarButton(self)

        toolbox.toolbar.insert(self.activity_toolbar_button, 0)
        self.activity_toolbar_button.show()

        self.numbers_toolbar_button = ToolbarButton(
            page=numbers_toolbar,
            icon_name='number-tools')
        if MODE == 'number':
            numbers_toolbar.show()
            toolbox.toolbar.insert(self.numbers_toolbar_button, -1)
            self.numbers_toolbar_button.show()

        self.tools_toolbar_button = ToolbarButton(
            page=tools_toolbar,
            icon_name='view-source')
        tools_toolbar.show()
        toolbox.toolbar.insert(self.tools_toolbar_button, -1)
        self.tools_toolbar_button.show()

        if MODE == 'pattern':
            self.button_pattern = button_factory(
                'new-pattern-game', toolbox.toolbar, self._select_game_cb,
                cb_arg='pattern', tooltip=PROMPT_DICT['pattern'])
        elif MODE == 'number':
            self.button_number = button_factory(
                'new-number-game', toolbox.toolbar, self._select_game_cb,
                cb_arg='number', tooltip=PROMPT_DICT['number'])
        else:
            self.button_pattern = button_factory(
                'new-word-game', toolbox.toolbar, self._select_game_cb,
                cb_arg='word', tooltip=PROMPT_DICT['word'])

        self._set_extras(toolbox.toolbar)

        self._sep.append(separator_factory(toolbox.toolbar, False, True))

        help_button = HelpButton(self)
        toolbox.toolbar.insert(help_button, -1)
        help_button.show()
        self._setup_toolbar_help()

        self._sep.append(separator_factory(toolbox.toolbar, True, False))

        stop_button = StopButton(self)
        stop_button.props.accelerator = '<Ctrl>q'
        toolbox.toolbar.insert(stop_button, -1)
        stop_button.show()

        export_scores = button_factory(
            'score-copy', self.activity_toolbar_button,
            self._write_scores_to_clipboard,
            tooltip=_('Export scores to clipboard'))

        self.set_toolbar_box(toolbox)
        toolbox.show()

        if MODE == 'word':
            self.words_tool_button = button_factory(
                'word-tools', tools_toolbar, self._edit_words_cb,
                tooltip=_('Edit word lists.'))

        self.import_button = button_factory(
            'image-tools', tools_toolbar, self.image_import_cb,
            tooltip=_('Import custom cards'))

        self.button_custom = button_factory(
            'new-custom-game', tools_toolbar, self._select_game_cb,
            cb_arg='custom', tooltip=_('New custom game'))
        self.button_custom.set_sensitive(False)

        if MODE == 'number':
            self._setup_number_buttons(numbers_toolbar)
    def _create_help_button(self):
        helpitem = HelpButton()

        helpitem.add_section(_('Useful commands'))
        helpitem.add_section(_('cd'))
        helpitem.add_paragraph(_('Change directory'))
        helpitem.add_paragraph(_('To use it, write: cd directory'))
        helpitem.add_paragraph(_(
    'If you call it without parameters, will change\nto the user directory'))
        helpitem.add_section(_('ls'))
        helpitem.add_paragraph(_('List the content of a directory.'))
        helpitem.add_paragraph(_('To use it, write: ls directory'))
        helpitem.add_paragraph(
    _('If you call it without parameters, will list the\nworking directory'))
        helpitem.add_section(_('cp'))
        helpitem.add_paragraph(_('Copy a file to a specific location'))
        helpitem.add_paragraph(_('Call it with the file and the new location'))
        helpitem.add_paragraph(_('Use: cp file directory/'))
        helpitem.add_section(_('rm'))
        helpitem.add_paragraph(_('Removes a file in any path'))
        helpitem.add_paragraph(_('Use: rm file'))
        helpitem.add_section(_('su'))
        helpitem.add_paragraph(_('Login as superuser (root)'))
        helpitem.add_paragraph(
            _('The root user is the administrator of the\nsystem'))
        helpitem.add_paragraph(
            _('You must be careful, because you can modify\nsystem files'))

        return helpitem
Esempio n. 7
0
    def _create_help_button(self):
        helpitem = HelpButton()

        helpitem.add_section(_('Useful commands'))
        helpitem.add_section(_('cd'))
        helpitem.add_paragraph(_('Change directory'))
        helpitem.add_paragraph(_('To use it, write: cd directory'))
        helpitem.add_paragraph(
            _('If you call it without parameters, will change\n'
              'to the user directory'))
        helpitem.add_section(_('ls'))
        helpitem.add_paragraph(_('List the content of a directory.'))
        helpitem.add_paragraph(_('To use it, write: ls directory'))
        helpitem.add_paragraph(
            _('If you call it without parameters, will list the\n'
              'working directory'))
        helpitem.add_section(_('cp'))
        helpitem.add_paragraph(_('Copy a file to a specific location'))
        helpitem.add_paragraph(_('Call it with the file and the new location'))
        helpitem.add_paragraph(_('Use: cp file directory'))
        helpitem.add_section(_('rm'))
        helpitem.add_paragraph(_('Removes a file in any path'))
        helpitem.add_paragraph(_('Use: rm file'))
        helpitem.add_section(_('su'))
        helpitem.add_paragraph(_('Login as superuser (root)'))
        helpitem.add_paragraph(
            _('The root user is the administrator of the\nsystem'))
        helpitem.add_paragraph(
            _('You must be careful, because you can modify\nsystem files'))

        return helpitem
Esempio n. 8
0
 def create_help(self, toolbar):
     helpitem = HelpButton()
     toolbar.insert(helpitem, -1)
     helpitem.show()
     helpitem.add_paragraph(_('Click in the background to drop an apple'))
     helpitem.add_paragraph(_('or press A for an apple'), 'apple')
     helpitem.add_paragraph(_('or press C for a carrot'), 'carrot')
     helpitem.add_paragraph(_('or press H for an hay'), 'hay')
     helpitem.add_paragraph(_('while you moves the mouse'))
Esempio n. 9
0
def create_help(toolbar):
    helpitem = HelpButton()
    toolbar.insert(helpitem, -1)
    helpitem.show()
    helpitem.add_section(_('Basic usage'))
    helpitem.add_paragraph(_('First you need add data to create the graph'))
    helpitem.add_paragraph(_('You can add data with this button'),
                           'row-insert')
    helpitem.add_paragraph(_('...or remove data with this button'),
                           'row-remove')
    helpitem.add_paragraph(
        _('To change the graph title, just change the activity title'))

    helpitem.add_paragraph(_('Next you can change the type of graph'))
    helpitem.add_paragraph(_('Vertical bars'), 'vbar')
    helpitem.add_paragraph(_('Horizontal bars'), 'hbar')
    helpitem.add_paragraph(_('Lines'), 'line')
    helpitem.add_paragraph(_('Pie'), 'pie')

    helpitem.add_section(_('Configs'))
    helpitem.add_paragraph(
        _('You can change the colors or the horizontal and vertical labels in the configs toolbar'
          ), 'preferences-system')

    helpitem.add_section(_('Saving as an image'))
    helpitem.add_paragraph(
        _('In the activity toolbar you have button to save the graph as an image'
          ), 'save-as-image')

    helpitem.add_section(_('Reading data from other activities'))
    helpitem.add_paragraph(
        _('In the activity toolbar you have buttons to read data from other activities'
          ))
    helpitem.add_paragraph(
        _('You can use times measured in the StopWatch activity'),
        'import-stopwatch')
    helpitem.add_paragraph(_('...or data from the Measure activity'),
                           'import-measure')
Esempio n. 10
0
def create_help(toolbar):
    helpitem = HelpButton()
    toolbar.insert(helpitem, -1)
    helpitem.show()
    helpitem.add_section(_('Basic usage'))
    helpitem.add_paragraph(_('First you need add data to create the graph'))
    helpitem.add_paragraph(_('You can add data with this button'),
            'gtk-add')
    helpitem.add_paragraph(_('...or remove data with this button'),
            'gtk-remove')
    helpitem.add_paragraph(_('To change the graph title, just change the activity title'))

    helpitem.add_paragraph(_('Next you can change the type of graph'))
    helpitem.add_paragraph(_('Vertical bars'), 'vbar')
    helpitem.add_paragraph(_('Horizontal bars'), 'hbar')
    helpitem.add_paragraph(_('Lines'), 'line')
    helpitem.add_paragraph(_('Pie'), 'pie')

    helpitem.add_section(_('Configs'))
    helpitem.add_paragraph(_('You can change the colors or the horizontal and vertical labels in the configs toolbar'),
            'preferences-system')

    helpitem.add_section(_('Saving as an image'))
    helpitem.add_paragraph(_('In the activity toolbar you have button to save the graph as an image'),
            'save-as-image')

    helpitem.add_section(_('Reading data from other activities'))
    helpitem.add_paragraph(_('In the activity toolbar you have buttons to read data from other activities'))
    helpitem.add_paragraph(_('You can use times measured in the StopWatch activity'), 'import-stopwatch')
    helpitem.add_paragraph(_('...or data from the Measure activity'), 'import-measure')

    helpitem.add_section(_('Reading data from the clipboard'))
    helpitem.add_paragraph(_('Some activities (such as VisualMatch) has the ability to copy data to the clipboard'))
    helpitem.add_paragraph(_('Drop the clipboard data into the chart area and it will be charted'))
Esempio n. 11
0
 def create_help(self, toolbar):
     helpitem = HelpButton()
     toolbar.insert(helpitem, -5)
     helpitem.show()
     helpitem.add_paragraph((
         'Para abrir un juego busca el juego el el directorio donde lo descargastes o guardastes, dale click arriba y luego dale click a unos de los botones de la barra para poder jugarlo o dale click en donde dice jugar rom en la parte de abajo'
     ))
     helpitem.add_paragraph(
         ('Este boton abre el juego en una pantalla chica'), 'chico')
     helpitem.add_paragraph(
         ('Este boton abre el juego en una pantalla mediana'), 'mediano')
     helpitem.add_paragraph(
         ('Este boton abre el juego en una pantalla grande'), 'grande')
     helpitem.add_paragraph((
         'Para salir del juego  apreta las teclas Control+Q o pon en el marco el puntero sobre el icono de la actividad y da click en Parar'
     ))
Esempio n. 12
0
    def _setup_toolbars(self):
        ''' Setup the toolbars.. '''

        games_toolbar = Gtk.Toolbar()
        tools_toolbar = Gtk.Toolbar()
        numbers_toolbar = Gtk.Toolbar()
        toolbox = ToolbarBox()

        self.activity_toolbar_button = ActivityToolbarButton(self)

        toolbox.toolbar.insert(self.activity_toolbar_button, 0)
        self.activity_toolbar_button.show()
        '''
        self.numbers_toolbar_button = ToolbarButton(
            page=numbers_toolbar,
            icon_name='number-tools')
        numbers_toolbar.show()
        toolbox.toolbar.insert(self.numbers_toolbar_button, -1)
        self.numbers_toolbar_button.show()
        '''

        self.tools_toolbar_button = ToolbarButton(page=tools_toolbar,
                                                  icon_name='view-source')
        tools_toolbar.show()
        toolbox.toolbar.insert(self.tools_toolbar_button, -1)
        self.tools_toolbar_button.show()

        self.button_pattern = button_factory('new-word-game',
                                             toolbox.toolbar,
                                             self._select_game_cb,
                                             cb_arg='word',
                                             tooltip=PROMPT_DICT['word'])

        self._set_extras(toolbox.toolbar)

        self._sep.append(separator_factory(toolbox.toolbar, False, True))

        help_button = HelpButton(self)
        toolbox.toolbar.insert(help_button, -1)
        help_button.show()
        self._setup_toolbar_help()

        self._sep.append(separator_factory(toolbox.toolbar, True, False))

        stop_button = StopButton(self)
        stop_button.props.accelerator = '<Ctrl>q'
        toolbox.toolbar.insert(stop_button, -1)
        stop_button.show()

        export_scores = button_factory('score-copy',
                                       self.activity_toolbar_button,
                                       self._write_scores_to_clipboard,
                                       tooltip=_('Export scores to clipboard'))

        self.set_toolbar_box(toolbox)
        toolbox.show()
        '''
        self.button_pattern = button_factory(
            'new-pattern-game', games_toolbar, self._select_game_cb,
            cb_arg='pattern', tooltip=PROMPT_DICT['pattern'])
        self.button_number = button_factory(
            'new-number-game', games_toolbar, self._select_game_cb,
            cb_arg='number', tooltip=PROMPT_DICT['number'])
        self.button_word = button_factory(
            'new-word-game', games_toolbar, self._select_game_cb,
            cb_arg='word', tooltip=PROMPT_DICT['word'])
        self.button_custom = button_factory(
            'no-custom-game', games_toolbar, self._select_game_cb,
            cb_arg='custom', tooltip=PROMPT_DICT['custom'])

        self._set_extras(games_toolbar)

        '''
        self.words_tool_button = button_factory('word-tools',
                                                tools_toolbar,
                                                self._edit_words_cb,
                                                tooltip=_('Edit word lists.'))
        '''
Esempio n. 13
0
    def _setup_toolbars(self):
        ''' Setup the toolbars.. '''

        games_toolbar = Gtk.Toolbar()
        tools_toolbar = Gtk.Toolbar()
        numbers_toolbar = Gtk.Toolbar()
        toolbox = ToolbarBox()

        self.activity_toolbar_button = ActivityToolbarButton(self)

        toolbox.toolbar.insert(self.activity_toolbar_button, 0)
        self.activity_toolbar_button.show()

        self.numbers_toolbar_button = ToolbarButton(page=numbers_toolbar,
                                                    icon_name='number-tools')
        numbers_toolbar.show()
        toolbox.toolbar.insert(self.numbers_toolbar_button, -1)
        self.numbers_toolbar_button.show()
        '''
        self.tools_toolbar_button = ToolbarButton(
            page=tools_toolbar,
            icon_name='view-source')
        tools_toolbar.show()
        toolbox.toolbar.insert(self.tools_toolbar_button, -1)
        self.tools_toolbar_button.show()
        '''

        self.button_number = button_factory('new-number-game',
                                            toolbox.toolbar,
                                            self._select_game_cb,
                                            cb_arg='number',
                                            tooltip=PROMPT_DICT['number'])

        self._set_extras(toolbox.toolbar)

        self._sep.append(separator_factory(toolbox.toolbar, False, True))

        help_button = HelpButton(self)
        toolbox.toolbar.insert(help_button, -1)
        help_button.show()
        self._setup_toolbar_help()

        self._sep.append(separator_factory(toolbox.toolbar, True, False))

        stop_button = StopButton(self)
        stop_button.props.accelerator = '<Ctrl>q'
        toolbox.toolbar.insert(stop_button, -1)
        stop_button.show()

        export_scores = button_factory('score-copy',
                                       self.activity_toolbar_button,
                                       self._write_scores_to_clipboard,
                                       tooltip=_('Export scores to clipboard'))

        self.set_toolbar_box(toolbox)
        toolbox.show()
        '''
        self.button_pattern = button_factory(
            'new-pattern-game', games_toolbar, self._select_game_cb,
            cb_arg='pattern', tooltip=PROMPT_DICT['pattern'])
        self.button_word = button_factory(
            'new-word-game', games_toolbar, self._select_game_cb,
            cb_arg='word', tooltip=PROMPT_DICT['word'])
        self.button_custom = button_factory(
            'no-custom-game', games_toolbar, self._select_game_cb,
            cb_arg='custom', tooltip=PROMPT_DICT['custom'])

        self._set_extras(games_toolbar)

        self.words_tool_button = button_factory(
            'word-tools', tools_toolbar, self._edit_words_cb,
            tooltip=_('Edit word lists.'))

        self.import_button = button_factory(
            'image-tools', tools_toolbar, self.image_import_cb,
            tooltip=_('Import custom cards'))

        self.button_custom = button_factory(
            'no-custom-game', tools_toolbar, self._select_game_cb,
            cb_arg='custom', tooltip=PROMPT_DICT['custom'])
        '''

        self.product_button = radio_factory('product',
                                            numbers_toolbar,
                                            self._number_card_O_cb,
                                            cb_arg=PRODUCT,
                                            tooltip=_('product'),
                                            group=None)
        NUMBER_O_BUTTONS[PRODUCT] = self.product_button
        self.roman_button = radio_factory('roman',
                                          numbers_toolbar,
                                          self._number_card_O_cb,
                                          cb_arg=ROMAN,
                                          tooltip=_('Roman numerals'),
                                          group=self.product_button)
        NUMBER_O_BUTTONS[ROMAN] = self.roman_button
        self.word_button = radio_factory('word',
                                         numbers_toolbar,
                                         self._number_card_O_cb,
                                         cb_arg=WORD,
                                         tooltip=_('word'),
                                         group=self.product_button)
        NUMBER_O_BUTTONS[WORD] = self.word_button
        self.chinese_button = radio_factory('chinese',
                                            numbers_toolbar,
                                            self._number_card_O_cb,
                                            cb_arg=CHINESE,
                                            tooltip=_('Chinese'),
                                            group=self.product_button)
        NUMBER_O_BUTTONS[CHINESE] = self.chinese_button
        self.mayan_button = radio_factory('mayan',
                                          numbers_toolbar,
                                          self._number_card_O_cb,
                                          cb_arg=MAYAN,
                                          tooltip=_('Mayan'),
                                          group=self.product_button)
        NUMBER_O_BUTTONS[MAYAN] = self.mayan_button
        self.incan_button = radio_factory('incan',
                                          numbers_toolbar,
                                          self._number_card_O_cb,
                                          cb_arg=INCAN,
                                          tooltip=_('Quipu'),
                                          group=self.product_button)
        NUMBER_O_BUTTONS[INCAN] = self.incan_button

        self._sep.append(separator_factory(numbers_toolbar, False, True))

        self.hash_button = radio_factory('hash',
                                         numbers_toolbar,
                                         self._number_card_C_cb,
                                         cb_arg=HASH,
                                         tooltip=_('hash marks'),
                                         group=None)
        NUMBER_C_BUTTONS[HASH] = self.hash_button
        self.dots_button = radio_factory('dots',
                                         numbers_toolbar,
                                         self._number_card_C_cb,
                                         cb_arg=DOTS,
                                         tooltip=_('dots in a circle'),
                                         group=self.hash_button)
        NUMBER_C_BUTTONS[DOTS] = self.dots_button
        self.star_button = radio_factory('star',
                                         numbers_toolbar,
                                         self._number_card_C_cb,
                                         cb_arg=STAR,
                                         tooltip=_('points on a star'),
                                         group=self.hash_button)
        NUMBER_C_BUTTONS[STAR] = self.star_button
        self.dice_button = radio_factory('dice',
                                         numbers_toolbar,
                                         self._number_card_C_cb,
                                         cb_arg=DICE,
                                         tooltip=_('dice'),
                                         group=self.hash_button)
        NUMBER_C_BUTTONS[DICE] = self.dice_button
        self.lines_button = radio_factory('lines',
                                          numbers_toolbar,
                                          self._number_card_C_cb,
                                          cb_arg=LINES,
                                          tooltip=_('dots in a line'),
                                          group=self.hash_button)
        NUMBER_C_BUTTONS[LINES] = self.lines_button
Esempio n. 14
0
def create_help(toolbar):
    helpitem = HelpButton()
    toolbar.insert(helpitem, -1)
    helpitem.show()
    helpitem.add_section(_('Basic usage'))
    helpitem.add_paragraph(_('First you need add data to create the graph'))
    helpitem.add_paragraph(_('You can add data with this button'),
                           'gtk-add')
    helpitem.add_paragraph(_('...or remove data with this button'),
                           'gtk-remove')
    helpitem.add_paragraph(_('To change the graph title, '
                             'just change the activity title'))

    helpitem.add_paragraph(_('Next you can change the type of graph'))
    helpitem.add_paragraph(_('Vertical bars'), 'vbar')
    helpitem.add_paragraph(_('Horizontal bars'), 'hbar')
    helpitem.add_paragraph(_('Lines'), 'line')
    helpitem.add_paragraph(_('Pie'), 'pie')

    helpitem.add_section(_('Configs'))
    helpitem.add_paragraph(_('You can change the colors or the horizontal '
                             'and vertical labels in the configs toolbar'),
                           'preferences-system')

    helpitem.add_section(_('Saving as an image'))
    helpitem.add_paragraph(_('In the activity toolbar you have button to '
                             'save the graph as an image'),
                           'save-as-image')

    helpitem.add_section(_('Reading data from other activities'))
    helpitem.add_paragraph(_('In the activity toolbar you have buttons to '
                             'read data from other activities'))
    helpitem.add_paragraph(_('You can use times measured in the StopWatch '
                             'activity'), 'import-stopwatch')
    helpitem.add_paragraph(_('...or data from the Measure activity'),
                           'import-measure')

    helpitem.add_section(_('Reading data from the clipboard'))
    helpitem.add_paragraph(_('Some activities (such as VisualMatch) can '
                             'copy data to the clipboard'))
    helpitem.add_paragraph(_('Drop the clipboard data into the chart area '
                             'and it will be charted'))
Esempio n. 15
0
def create_help(toolbar):
    helpitem = HelpButton()
    toolbar.insert(helpitem, -1)
    helpitem.show()
    helpitem.add_section(_('Basic usage'))
    helpitem.add_paragraph(_('First select data type:'))
    helpitem.add_paragraph(_('The free space in the Journal;'),
            'import-freespace')
    helpitem.add_paragraph(_('The types of Sugar Activities you have used;'),
            'import-journal')
    helpitem.add_paragraph(_('The types of blocks used in Turtle Art.'),
            'import-turtle')
    helpitem.add_paragraph(_('The graph title is the same as the Activity title'))

    helpitem.add_paragraph(_('You can change the type of graph:'))
    helpitem.add_paragraph(_('Vertical bars'), 'vbar')
    helpitem.add_paragraph(_('Horizontal bars'), 'hbar')
    helpitem.add_paragraph(_('Lines'), 'line')
    helpitem.add_paragraph(_('Pie'), 'pie')

    helpitem.add_section(_('Saving as an image'))
    helpitem.add_paragraph(_('In the activity toolbar you have button to save the graph as an image'),
            'save-as-image')