how to make the button look like mac in tkinter 5d

Solutions on MaxInterview for how to make the button look like mac in tkinter 5d by the best coders in the world

showing results for - "how to make the button look like mac in tkinter 5d"
Pia
12 Jan 2019
1#Use highlightbackground=color
2#For example:
3
4submit = Button(root, text="Generate", highlightbackground='#3E4149')
Amelia
24 Mar 2018
1# To get the buttons look like in macOS you can use tkmacosx 
2# example:
3
4from tkinter import *
5from tkmacosx import Button
6
7root = Tk()
8root.geometry('200x150')
9B0 = Button(root, text='Button')
10B0.pack(padx=20, pady=(20,0))
11B1 = Button(root, text='Button', bg='#ADEFD1', 
12            fg='#00203F', borderless=1)
13B1.pack(padx=20, pady=10)
14B2 = Button(root, text='Button', bg='#E69A8D', 
15            fg='#5F4B8B', borderless=1,
16            activebackground=('#AE0E36', '#D32E5E'),
17            activeforeground='#E69A8D')
18B2.pack()
19root.mainloop
20
21
22# To get the latest theme from your OS you can use ttk as show below
23from tkinter import ttk
24import tkinter
25
26root = tkinter.Tk()
27
28ttk.Style().configure("TButton", padding=6, relief="flat",
29   background="#ccc")
30
31btn = ttk.Button(text="Sample")
32btn.pack()
33
34root.mainloop()
queries leading to this page
background color of button in tkinterbackground color change is not working in mac tkinterno color button ktintertkinter button bg not working on mactkinter button size isnt changing 2c only backgroundtkinter button does not change background colortkinter button configure background colorgui tkinter button fg 3fmacos tkinter button colortkinter button default background colorbutton tkinter color macostkinter button background color not working macchange background color button tkinterpython 3 tkinter button background colorbackground color button tkintertkinter button bg not workingtkinter change button background colortkinter button background color doesn 27t worktkinter activebackgroundtkinter button background color on mactkinter button bg 5cpython tkinter button active backgroundtkinter background color 23 codebackground color of button tkinterhow to change fg in tkinter on mactkinter button background color not workinghow to put colours to a button in a tkinter gui on a macmac os tkinter change button background colour bluetkinter background color buttonpython tkinter button set colortkinter support changing color on mactkinter button colorbutton background color in tkinterbutton background tlintetrtkinter button color macosmac tkinter button colorhow to change the foreground or background colour of a tkinter button on mac os x 3fhow to make the button look like mac in tkinterpython tkinter highlight backgroundhow to stop the black highlight after updating label tkinter mac osbg in button in tkinter does not workpython tkinter cannot set button coloradd background image in python tkinter for macoshow set ttk button color 2b python tkinter 2b macos3 button background color tkintertkinter button color on macactive foreground tkintertkinter button colour iostkinter button dont change colorhow to change background color of button in tkintertkinter button color doesn working mactkinter button dark gray outttk button background color tkinterhow to stop the black highlight tkinter mac ostkinter button active bgtkinter custo button mactkinter button bg color not workingtkinter button background color machow to change button color in tkintertkinter button has a white backgroundbutton is fully white tkinterbutton tkinter background colorbackground color for button tkintermac os tkinter change button colour blueset button color tkinter macoscahnge the color of a button in tkinter deosnt work macpython tkinter button background colorhow to make the button look like mac in tkinter 5dtkinter button color macpython3 tkinter fg and bg not workingtkinter active backgroundhighlight background tkinteros fg python 3tkinter button backgroundfix tkinter button bg not working on mactkinter button text color macpython tkinter button macostk colored buttonshighlightcolor is not working for the tkinter buttointkinter set button background colortkinter button set background colortkinter button background color does not workingtkinter button background has canvas colortkinter butons in mactkinter button color options fg bgcolors not working in tkintertkinter button background colorchange fg attribute in tkintertkinter button with mac dont clickbackground and foreground tkintermac os tkinter fg doesnt change colorhow to change tkinter color on mactkinter chang color on macbackground color button tkinter macosbutton background color tkinterbutton in tkinter bg not showingtkinter button color not working mactkinter windows button background colorhow to make the button look like mac in tkinter 5d