Ejemplo n.º 1
0
	def _on_view_default_opts(self, w):
		tabs = tidy_opt_utils.default_opts_names_dicts()
	
		d = opts_dlg.dlg(self, tabs, False)
		
		d.show_all()
		
		d.run()
		
		d.destroy()
Ejemplo n.º 2
0
	def _on_edit_custom_opts(self, w):	
		tabs = self._config_dict[consts.custom_opts_names_dicts_category] 
		
		d = opts_dlg.dlg(self, tabs, True)
		
		d.show_all()
		
		rep = d.run()
		
		if rep == gtk.RESPONSE_OK:
			log_utils.debug('updating custom opts')
			
			self._config_dict[consts.custom_opts_names_dicts_category] = d.names_dicts()
			
			log_utils.debug('updated custom opts')
			
		d.destroy()