Learn Before
Concept

Modifying Labels

We can change different characteristics of labels like text color, background color, height, width etc. Text color is modified using foreground property.

greeting = tk.Label(text="Hello, World", foreground="yellow", background="pink", width="10", height="5")
Image 0

0

1

Updated 2021-08-17

Contributors are:

Who are from:

References


Tags

Python Programming Language

Data Science