Пример #1
0
	def copy_appended_images(self, pHandler) :
		self.appended_images.clear()
		for img in pHandler.appended_images.images :
			new_img = Img.Control()
			new_img.state_copy(img)
			if img.widget is not None :
				new_img.bind_widget(self.add_image_widget())
			self.appended_images.add(new_img)
Пример #2
0
	def append_image(self, image, x_global_coord, y_global_coord, ini_frame, end_frame, target_width = 0.34, target_height = 0.5, widget = None) : 
		self.appended_images.add(Img.Control(image, x_global_coord / self.win_width, y_global_coord / self.win_height, max(ini_frame, 0), min(end_frame, self.last_frame), max(min(1, target_width), 0.1), max(min(1, target_height), 0.1), widget))