P
P
PaffosONE2021-07-23 00:56:39
Python
PaffosONE, 2021-07-23 00:56:39

How to make transparent color in Tkinter?

Hello, I ran into such a problem, you need to make background_color semi-transparent in Frame.

The code:

import tkinter as tk
frame = tk.Frame ( parent )
frame['bg'] = 'red'
frame.pack()


How can this be done in a minimum of lines of code?

Thanks in advance for your reply!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EgorSvinarev, 2021-07-23
@EgorSvinarev

If I'm not mistaken, there is no cross-platform solution. What is your OS?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question