Sep-26-2017, 10:24 AM
from tkinter import * class MyButton(Button): def __init__(self, *args, **kwargs): Button.__init__(self, *args, **kwargs) self['bg'] = 'red' root = Tk() my_button = MyButton(root, text='red button').pack() root.mainloop()and im not even sure what their button_down method is named to even override it.
Recommended Tutorials: