def __init__(self, win): RadioButtonTemplate.__init__( self, _("Font"), _("Choose a comfortable text size"), _("APPLY CHANGES"), [ [_("Small"), _("BETTER FOR SMALL SCREENS")], [_("Normal"), _("DEFAULT")], [_("Big"), _("BETTER FOR BIG SCREENS")] ] ) self.win = win self.win.set_main_widget(self) self.win.top_bar.enable_prev() self.win.change_prev_callback(self.reset_and_go_home) # Show the current setting by electing the appropriate radio button try: self.initial_button = MODES.index(get_setting('Font')) except ValueError: self.initial_button = 0 self.selected_button = self.initial_button self.get_button(self.initial_button).set_active(True) self.kano_button.connect('clicked', self.change_font) self.win.show_all()
def __init__(self, win): RadioButtonTemplate.__init__( self, _("Notifications"), _("Here you can manage the built-in notification system"), _("APPLY CHANGES"), [[_("Show all notifications"), ""], [_("Hide all notifications"), ""], [_("Hide only Kano World notifications"), ""]]) self.win = win self.win.set_main_widget(self) self.win.top_bar.enable_prev() self.win.change_prev_callback(self.win.go_to_home) self.enable_all_radiobutton = self.get_button(0) self.disable_all_radiobutton = self.get_button(1) self.disable_world_radiobutton = self.get_button(2) self._add_led_speaker_checkbox() self.kano_button.connect('button-release-event', self.apply_changes) self.show_configuration() self.win.show_all()
def __init__(self, win): RadioButtonTemplate.__init__( self, "Notifications", "Here you can manage the built-in notification system", "APPLY CHANGES", [ ["Show all notifications", ""], ["Hide all notifications", ""], ["Hide only Kano World notifications", ""] ] ) self.win = win self.win.set_main_widget(self) self.win.top_bar.enable_prev() self.win.change_prev_callback(self.win.go_to_home) self.enable_all_radiobutton = self.get_button(0) self.disable_all_radiobutton = self.get_button(1) self.disable_world_radiobutton = self.get_button(2) self.show_configuration() self.kano_button.connect("button-release-event", self.apply_changes) self.win.show_all()
def __init__(self, win): RadioButtonTemplate.__init__( self, _("Mouse"), _("Pick your speed"), _("APPLY CHANGES"), [ [_("Slow"), _("REQUIRES LESS MOVE PRECISION")], [_("Normal"), _("DEFAULT")], [_("Fast"), _("BETTER FOR WIDE SCREENS")] ] ) self.win = win self.win.set_main_widget(self) # Show the current setting by electing the appropriate radio button try: self.initial_button = MODES.index(get_setting('Mouse')) except ValueError: self.initial_button = 0 self.selected_button = self.initial_button self.get_button(self.initial_button).set_active(True) self.win.top_bar.enable_prev() self.win.change_prev_callback(self.reset_and_go_home) self.kano_button.connect('clicked', self.set_mouse) self.win.show_all()
def __init__(self, win): self._board_props = get_board_props() self._board_clocking = self._board_props.CLOCKING options = [] for mode in self._board_clocking['modes']: options.append([ mode, "{arm_freq}HZ ARM, " "{core_freq}HZ CORE, " "{sdram_freq}MHZ SDRAM, " "{over_voltage} OVERVOLT".format( **self._board_clocking['values'][mode]) ]) RadioButtonTemplate.__init__( self, _("Overclock your processor"), _("Make your computer's brain think faster, but run hotter."), _("APPLY CHANGES"), options) self.win = win self.win.set_main_widget(self) # Show the current setting by electing the appropriate radio button self.current_setting() self.selected_button = self.initial_button self.get_button(self.initial_button).set_active(True) self.win.top_bar.enable_prev() self.win.change_prev_callback(self.win.go_to_home) self.kano_button.connect('button-release-event', self.set_overclock) self.kano_button.connect('key-release-event', self.set_overclock) self.win.show_all()
def __init__(self, win): RadioButtonTemplate.__init__( self, _("Font"), _("Choose a comfortable text size"), _("APPLY CHANGES"), [[_("Small"), _("BETTER FOR SMALL SCREENS")], [_("Normal"), _("DEFAULT")], [_("Big"), _("BETTER FOR BIG SCREENS")]]) self.win = win self.win.set_main_widget(self) self.win.top_bar.enable_prev() self.win.change_prev_callback(self.reset_and_go_home) # Show the current setting by electing the appropriate radio button try: self.initial_button = MODES.index(get_setting('Font')) except ValueError: self.initial_button = 0 self.selected_button = self.initial_button self.get_button(self.initial_button).set_active(True) self.kano_button.connect('clicked', self.change_font) self.win.show_all()
def __init__(self, win): self._board_props = get_board_props() self._board_clocking = self._board_props.CLOCKING options = [] for mode in self._board_clocking['modes']: options.append([ mode, "{arm_freq}HZ ARM, " "{core_freq}HZ CORE, " "{sdram_freq}MHZ SDRAM, " "{over_voltage} OVERVOLT" .format(**self._board_clocking['values'][mode]) ]) RadioButtonTemplate.__init__( self, _("Overclock your processor"), _("Make your computer's brain think faster, but run hotter."), _("APPLY CHANGES"), options ) self.win = win self.win.set_main_widget(self) # Show the current setting by electing the appropriate radio button self.current_setting() self.selected_button = self.initial_button self.get_button(self.initial_button).set_active(True) self.win.top_bar.enable_prev() self.win.change_prev_callback(self.win.go_to_home) self.kano_button.connect('button-release-event', self.set_overclock) self.kano_button.connect('key-release-event', self.set_overclock) self.win.show_all()
def __init__(self, win): RadioButtonTemplate.__init__( self, _("Mouse"), _("Pick your speed"), _("APPLY CHANGES"), [[_("Slow"), _("REQUIRES LESS MOVE PRECISION")], [_("Normal"), _("DEFAULT")], [_("Fast"), _("BETTER FOR WIDE SCREENS")]]) self.win = win self.win.set_main_widget(self) # Show the current setting by electing the appropriate radio button try: self.initial_button = MODES.index(get_setting('Mouse')) except ValueError: self.initial_button = 0 self.selected_button = self.initial_button self.get_button(self.initial_button).set_active(True) self.win.top_bar.enable_prev() self.win.change_prev_callback(self.reset_and_go_home) self.kano_button.connect('clicked', self.set_mouse) self.win.show_all()