Пример #1
0
    def mouse_press(cls, sketchpad, pos):

        d = noise_settings(sketchpad._edit_widget)
        properties = d.get_properties()
        if properties == None:
            return
        properties.update({
            u'x': pos[0],
            u'y': pos[1],
            u'show_if': sketchpad.current_show_if()
        })
        return noise(sketchpad, properties=properties)
Пример #2
0
	def mouse_press(cls, sketchpad, pos):

		d = noise_settings(sketchpad._edit_widget)
		properties = d.get_properties()
		if properties is None:
			return
		properties.update({
				u'x':			pos[0],
				u'y':			pos[1],
				u'show_if' : 	sketchpad.current_show_if()
			})
		return noise(sketchpad, properties=properties)
Пример #3
0
    def show_edit_dialog(self):
        """
		desc:
			The show-edit dialog for the noise shows the settings dialog.
		"""

        d = noise_settings(self.sketchpad._edit_widget)
        d.set_properties(self.properties)
        properties = d.get_properties()
        if properties == None:
            return
        self.properties.update(properties)
        self.sketchpad.draw()
Пример #4
0
	def show_edit_dialog(self):

		"""
		desc:
			The show-edit dialog for the noise shows the settings dialog.
		"""

		d = noise_settings(self.sketchpad._edit_widget)
		d.set_properties(self.properties)
		properties = d.get_properties()
		if properties is None:
			return
		self.properties.update(properties)
		self.sketchpad.draw()