How to use the gradient.GRADIENT_PROFILES function in gradient

To help you get started, we’ve selected a few gradient examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github worron / ACYLS / scripts / acyls.py View on Github external
# There is no reaction on setup for elements below

		# Custom icon names
		for group in self.icongroups.pack.values():
			if group.is_custom:
				for key, value in group.state.items():
					self.gui['custom_icons_store'].append([key.capitalize(), value])
				break

		# Filter groups
		for group in self.filters.groupnames:
			self.gui['filter_group_combo'].append_text(group)
		# self.gui['filter_group_combo'].set_active(0)

		# gradient type list
		for tag in sorted(gradient.GRADIENT_PROFILES):
			self.gui['gradient_combo'].append_text(tag)
		self.gui['gradient_combo'].set_active(0)

		# Icon groups list
		for name in self.icongroups.names:
			self.gui['icongroup_combo'].append_text(name)
		self.gui['icongroup_combo'].set_active(0)

		# Filter editor preview icon
		pixbuf = PixbufCreator.new_single_at_size(self.filter_editor.preview, self.PREVIEW_ICON_SIZE)
		self.gui['filter_preview_icon'].set_from_pixbuf(pixbuf)

		# Connect gui hanlers now
		self.builder.connect_signals(self)

		# Set GUI element in 'active' mode