Dashed ring on button #396
Unanswered
Cromwell1963
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
Yes. The element you are referring to is called the focus ring and can be adjusted by setting the "focuscolor" to an empty string on the particular button style you are working with. Or you can simply use the "TButton" button style to affect all buttons. import ttkbootstrap as ttk
app = ttk.Window()
app.style.configure('TButton', focuscolor='')
ttk.Button(text='Button 1').pack(padx=5, pady=5)
ttk.Button(text='Button 2').pack(padx=5, pady=5)
ttk.Button(text='Button 3').pack(padx=5, pady=5)
app.mainloop() |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
I am having problems making this work. Have i done it correctly? Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to disable the dashed ring on the Button?
If not, is it possible to select a button from the code?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions