Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
tkinter change label text color 1

tkinter change label text color

June 13, 2022 by Anurag batra
label_name.configure(foreground="blue")

Here is what the above code is Doing:
1. We’ve created a Label widget, and assigned it to the variable label_name.
2. We’ve configured the text of the label to be “Hello, Tkinter!”
3. We’ve configured the foreground color of the label to be blue.

Categories Python Examples
Post navigation
convert categorical variable to numeric python
how to calculate chi square in python
© MyEduKit - 2022 . All Rights Reserved.