Jinxiang Qian
Jinxiang Qian

Reputation: 1

issues about transparency when I using canvas(tkinter) to creating a polygon

I'm using Canvas(from tkinter import *) to creating a polygon and want to set the polygon's alpha is 0.5, what should i do?

self.cv = Canvas(root, width=self.width, height=self.height, bg='green')
self.cv.create_polygon(0, 0, 100, 100, 0, 100, fill='gold',tags = 'POLYGON')

Upvotes: 0

Views: 33

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 386352

There is nothing you can do. The tkinter canvas doesn't support alpha channels.

Upvotes: 1

Related Questions