79610749

Date: 2025-05-07 14:20:34
Score: 2.5
Natty:
Report link

Does this work for your usage ?

from tkinter import Tk, Canvas

root = Tk()
root.wm_attributes("-topmost", 1)  # make root foreground
root.wm_attributes("-transparentcolor", "yellow")  # add a "transparent" color
cv = Canvas(root, width=400, height=400, bg="yellow")   # create a transparent canvas
cv.create_rectangle(50, 50, 100, 100, fill="red")  # rectangle you can see
cv.pack()

root.mainloop()
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: ciaraGT