コード例 #1
0
 def create_ssh_button(self):
     desc = (_(" Connect securely to your Kano from another computer")
             ).split('\n')
     self.ssh_button = Gtk.CheckButton()
     box = LabelledListTemplate.label_button(self.ssh_button,
                                             _("SSH client"), desc[0])
     return self._labelled_list_helper(desc, box)
コード例 #2
0
    def create_debug_button(self):
        desc = (
            _("Having problems?\n" \
              "1) Enable this mode\n" \
              "2) Report a bug with the ? tool on the Desktop")
        ).split('\n')
        self.debug_button = Gtk.CheckButton()
        box = LabelledListTemplate.label_button(
            self.debug_button,
            _("Debug mode"),
            desc[0]
        )

        grid = Gtk.Grid()
        grid.attach(box, 0, 0, 1, 1)

        i = 1

        for text in desc[1:]:
            label = Gtk.Label(text)
            label.set_alignment(xalign=0, yalign=0.5)
            label.set_padding(xpad=25, ypad=0)
            label.get_style_context().add_class('normal_label')
            grid.attach(label, 0, i, 1, 1)
            i = i + 1

        return grid
コード例 #3
0
    def create_parental_button(self):
        desc = (
            _("Use different levels to:\n" \
              "- Block mature content in browser and YouTube\n" \
              "- Or restrict internet access to only Kano World activity")
        ).split('\n')

        self.parental_button = Gtk.CheckButton()
        box = LabelledListTemplate.label_button(
            self.parental_button,
            _("Parental lock"),
            desc[0])

        grid = Gtk.Grid()
        grid.attach(box, 0, 0, 1, 1)

        i = 1

        for text in desc[1:]:
            label = Gtk.Label(text)
            label.set_alignment(xalign=0, yalign=0.5)
            label.set_padding(xpad=25, ypad=0)
            label.get_style_context().add_class('normal_label')
            grid.attach(label, 0, i, 1, 1)
            i = i + 1

        if get_parental_enabled():
            parental_config_button = OrangeButton(_("Configure"))
            parental_config_button.connect('button-press-event',
                                           self.go_to_parental_config)
            grid.attach(parental_config_button, 0, i, 1, 1)

        return grid
コード例 #4
0
 def create_debug_button(self):
     desc = (_(
         " Having problems?\n"
         "1) Enable this mode\n"
         "2) Report a bug with the ? tool on the Desktop")).split('\n')
     self.debug_button = Gtk.CheckButton()
     box = LabelledListTemplate.label_button(self.debug_button,
                                             _("Debug mode"), desc[0])
     return self._labelled_list_helper(desc, box)
コード例 #5
0
 def create_ssh_button(self):
     desc = (
         _(" Connect securely to your Kano from another computer")
     ).split('\n')
     self.ssh_button = Gtk.CheckButton()
     box = LabelledListTemplate.label_button(
         self.ssh_button,
         _("SSH client"),
         desc[0]
     )
     return self._labelled_list_helper(desc, box)
コード例 #6
0
 def create_debug_button(self):
     desc = (
         _(" Having problems?\n"
           "1) Enable this mode\n"
           "2) Report a bug with the ? tool on the Desktop")
     ).split('\n')
     self.debug_button = Gtk.CheckButton()
     box = LabelledListTemplate.label_button(
         self.debug_button,
         _("Debug mode"),
         desc[0]
     )
     return self._labelled_list_helper(desc, box)
コード例 #7
0
    def create_parental_button(self):
        desc = (_(" Use different levels to:\n"
                  "- Block mature content in browser and YouTube\n"
                  "- Or restrict internet access to only Kano World activity")
                ).split('\n')

        self.parental_button = Gtk.CheckButton()
        box = LabelledListTemplate.label_button(self.parental_button,
                                                _("Parental lock"), desc[0])

        grid = self._labelled_list_helper(desc, box)

        if get_parental_enabled():
            parental_config_button = OrangeButton(_("Configure"))
            parental_config_button.connect('button-press-event',
                                           self.go_to_parental_config)
            grid.attach(parental_config_button, 0, len(desc), 1, 1)

        return grid
コード例 #8
0
    def create_parental_button(self):
        desc = (
            _(" Use different levels to:\n"
              "- Block mature content in browser and YouTube\n"
              "- Or restrict internet access to only Kano World activity")
        ).split('\n')

        self.parental_button = Gtk.CheckButton()
        box = LabelledListTemplate.label_button(
            self.parental_button,
            _("Parental lock"),
            desc[0])

        grid = self._labelled_list_helper(desc, box)

        if get_parental_enabled():
            parental_config_button = OrangeButton(_("Configure"))
            parental_config_button.connect('button-press-event',
                                           self.go_to_parental_config)
            grid.attach(parental_config_button, 0, len(desc), 1, 1)

        return grid