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")

0
1
Updated 2021-08-17
Tags
Python Programming Language
Data Science