I was wondering if there is a way to make a transparent image for Tkinter. I was wanting to layer some images at random so I wouldn't know the background to use... at first I was using .GIF but I heard .PNG worked for transparency but I couldn't get .PNG into Tkinter any help?
Thropian 3 Junior Poster in Training
Recommended Answers
Jump to PostHere is a simple way to accomplish transparency using the Tkinter GUI toolkit ...
# explore Tkinter transparency (simplified) try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk root = tk.Tk() # use opacity alpha values from 0.0 to 1.0 # …
All 4 Replies
Thropian 3 Junior Poster in Training
snippsat 661 Master Poster
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
Thropian 3 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.