コード例 #1
0
	def __init__(self, parent, relx, rely, anchor, image, command):
		CanvasItem.__init__(self, parent, relx, rely, anchor, image.width(), image.height())
		self.image = image
		self.invoke = command
				
		self.image_item = parent.create_image(self.x, self.y, image=self.image, anchor=tk.NW)

		return
コード例 #2
0
    def __init__(self, parent, relx, rely, anchor, image, number_images):
        CanvasItem.__init__(self, parent, relx, rely, anchor, image.width(), image.height())
        self.image = image
        self.number_images = number_images
        self.animation_started = False
        self.image_item = parent.create_image(self.x, self.y, image=self.image, anchor=tk.NW)
        self.lottery_number = None

        return
コード例 #3
0
ファイル: number_bar.py プロジェクト: em-mo/Lottodragning
    def __init__(self, parent, relx, rely, anchor, images, max_value):
        CanvasItem.__init__(self, parent, relx, rely, anchor, images[0].width() * 4, parent.winfo_height())

        self.number_images = images
        self.drawn_numbers_list = list()
        self.latest_drawn_number = 0
        self.max_value = max_value

        self.calculate_next_coordinates()
        return