def on_thumbnail_size_combobox_changed(self, combobox): """Update the thumbnail size in the PreferencesModel.""" preferences_model = self.application.get_preferences_model() preferences_view = self.application.get_preferences_view() preferences_model.thumbnail_size = \ int(read_combobox(preferences_view['thumbnail_size_combobox']))
def on_toolbar_style_combobox_changed(self, combobox): """Update the toolbar style in the PreferencesModel.""" preferences_model = self.application.get_preferences_model() preferences_view = self.application.get_preferences_view() preferences_model.toolbar_style = \ read_combobox(preferences_view['toolbar_style_combobox'])
def on_preview_mode_combobox_changed(self, combobox): """Update the preview mode in the PreferencesModel.""" preferences_model = self.application.get_preferences_model() preferences_view = self.application.get_preferences_view() preferences_model.preview_mode = \ read_combobox(preferences_view['preview_mode_combobox'])