Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Entry border color in tkinter

# import tkinter
from tkinter import *
 
# Create Tk object
window = Tk()
 
# Set the window title
window.title('GFG')
 
# Entry Widget
# highlightthickness for thickness of the border
entry = Entry(highlightthickness=2)
 
# highlightbackground and highlightcolor for the border color
entry.config(highlightbackground = "red", highlightcolor= "red")
 
# Place the widgets in window
entry.pack(padx=20, pady=20)
 
window.mainloop()
Comment

how to set border color in tkinter

from tkinter import *

COLOR = "black"

root = Tk()
root.config(bg=COLOR)

button = Button(text="button", bg=COLOR)
button.pack(padx=5, pady=5)
entry = Entry(bg=COLOR, fg='white')
entry.pack(padx=5, pady=5)
text = Text(bg=COLOR, fg='white')
text.pack(padx=5, pady=5)

root.mainloop()
Comment

PREVIOUS NEXT
Code Example
Python :: position of legend matplotlib 
Python :: pip show all installed packages 
Python :: scrapy user agent 
Python :: get path of notebook 
Python :: trimming spaces in string python 
Python :: python maths max value capped at x 
Python :: how to play mp3 audio in python 
Python :: rightclick in pygame 
Python :: print fibonacci series in reverse in python 
Python :: narcissistic number python 
Python :: how to make python remove the duplicates in list 
Python :: python print without leading whitespace 
Python :: pandas to csv float format 
Python :: jsonresponse status code django 
Python :: python split on first occurrence 
Python :: sample datafra,e PYTHON 
Python :: how to increment date by one in python 
Python :: how to get RGB value from pixel in screen live python 
Python :: punctuation list python 
Python :: how to change canvas background color in python tkinter 
Python :: generate random list of number py 
Python :: python colorama example 
Python :: format percentage python 
Python :: difference between sort and sorted 
Python :: shutil copy folder 
Python :: get columns containing string 
Python :: django widgets 
Python :: replace nan with mean 
Python :: decrease hours in datetime python 
Python :: gnome-shell turn off 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =