コード例 #1
0
ファイル: colorpage.py プロジェクト: worron/ACYLS
	def on_icongroup_combo_changed(self, combo):
		if self.init_confirmed:  # fix this: first switch
			self.write_gui_settings_to_base()
			files = self.icongroups.current.get_test()
			iconchanger.rebuild(*files, **self.current_state())

		self.icongroups.switch(combo.get_active_text())

		if self.icongroups.current.is_custom:
			self.store['custom_icons'].clear()
			for key, value in self.icongroups.current.state.items():
				self.store['custom_icons'].append([key.capitalize(), value])

		self.gui['custom_icons_treeview'].set_sensitive(self.icongroups.current.is_custom)

		self.read_gui_setting_from_base()
コード例 #2
0
    def on_icongroup_combo_changed(self, combo):
        if self.init_confirmed:  # fix this: first switch
            self.write_gui_settings_to_base()
            files = self.icongroups.current.get_test()
            iconchanger.rebuild(*files, **self.current_state())

        self.icongroups.switch(combo.get_active_text())

        if self.icongroups.current.is_custom:
            self.store['custom_icons'].clear()
            for key, value in self.icongroups.current.state.items():
                self.store['custom_icons'].append([key.capitalize(), value])

        self.gui['custom_icons_treeview'].set_sensitive(
            self.icongroups.current.is_custom)

        self.read_gui_setting_from_base()
コード例 #3
0
ファイル: colorpage.py プロジェクト: worron/ACYLS
	def on_apply_click(self, *args):
		files = self.icongroups.current.get_real()
		iconchanger.rebuild(*files, **self.current_state())
コード例 #4
0
 def on_apply_click(self, *args):
     files = self.icongroups.current.get_real()
     iconchanger.rebuild(*files, **self.current_state())