Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

tkinter change button foreground

#bg for changing background colour of the button
#fg for chaning foreground colour of the button 

button = tk.Button(root, text="Sign Out", bg='green', fg="white", command= lambda: controller.show_frame(10)) #, highlightthickness = 0, bd = 0)
button.grid(row=3, column=0, sticky='ne', padx=20, pady=50)
Comment

PREVIOUS NEXT
Code Example
Python :: conditional and in python 
Python :: python cant remove temporary files 
Python :: rotate linked list 
Python :: python generate tuple from lists 
Python :: how to leave a function python 
Python :: python vim auto indent on paste 
Python :: round float python 
Python :: lru_cache 
Python :: controlling the mouse with pynput 
Python :: pandas mean of n columns 
Python :: python in kali linux 
Python :: winsound python 
Python :: clipboard python 
Python :: how to open annaconda 
Python :: python find minimum date in list 
Python :: python library 
Python :: python import as 
Python :: image data generator keras with tf.data.Data.from_generator 
Python :: bash escape double quote windows batch 
Python :: python secret 
Python :: python string upper method 
Python :: flask orm update query 
Python :: python last index of item in list 
Python :: how can you know if a year is a leap year 
Python :: numpy maximum 
Python :: pyside click through window 
Python :: python print set 
Python :: hide text in plot 
Python :: elbow plot for k means clustering 
Python :: create pdf in python 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =