0

Could someone please help, i cannot set the style of a button after the button has already been created.

i asked the all knowing god of code, and chatgpt said that it is impossible, but i was hoping there might be another way to do it.

i tried using:

button.config('style' = 'light')
button['style'] == 'light'

i also tried changing the boarders and bg independently using the .clam thingy

i was expecting it to change but i just got many errors

D.L
  • 4,339
  • 5
  • 22
  • 45

1 Answers1

0

U can use button.config(style='primary.TButton') or button.configure(style='info.TButton'). Also button['style'] = 'primary.TButton' just chane 'primary.TButton' to your. Its all works with "bootstyle" atribute 2