Ejemplo n.º 1
0
    def apply_changes(self, _, event):
        """ Save the changes to the config file """

        if not hasattr(event, 'keyval') or event.keyval == Gdk.KEY_Return:
            if self.original_overscan != self.overscan_values:
                # Bring in message dialog box
                kdialog = kano_dialog.KanoDialog(
                    "Are you sure you want to set this screen size?",
                    "",
                    {
                        "OK": {
                            "return_value": -1
                        },
                        "CANCEL": {
                            "return_value": 0
                        }
                    },
                    parent_window=self.win
                )
                response = kdialog.run()
                if response == 0:
                    return
                # Apply changes
                write_overscan_values(self.overscan_values)
            # Next screen
            self.go_to_next()
Ejemplo n.º 2
0
    def apply_changes(self, button, event):
        # NB, write_overscan_values ends the transaction
        write_overscan_values(self.overscan_values)
        self.original_overscan = self.overscan_values

        # Tell user to reboot to see changes
        common.need_reboot = True

        self.go_to_display()
Ejemplo n.º 3
0
    def apply_changes(self, button, event):
        # NB, write_overscan_values ends the transaction
        write_overscan_values(self.overscan_values)
        self.original_overscan = self.overscan_values

        # Tell user to reboot to see changes
        common.need_reboot = True

        self.go_to_display()
Ejemplo n.º 4
0
    def apply_changes(self, button, event):
        # Apply changes
        write_overscan_values(self.overscan_values)
        self.original_overscan = self.overscan_values
        set_config_comment('kano_screen_used', get_model())

        # Tell user to reboot to see changes
        common.need_reboot = True

        self.go_to_display()
Ejemplo n.º 5
0
    def apply_changes(self, button, event):
        # Apply changes
        set_config_comment('kano_screen_used', get_model())
        # NB, write_overscan_values ends the transaction
        write_overscan_values(self.overscan_values)
        self.original_overscan = self.overscan_values

        # Tell user to reboot to see changes
        common.need_reboot = True

        self.go_to_display()
Ejemplo n.º 6
0
 def save_changes(self):
     if self._original != self._current:
         write_overscan_values(self._current)