/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
from Tkinter import * class GUI(Frame): def __init__(self): Frame.__init__(self) button = Button(relief=RAISED,text='Test Button') button.pack() button.bind("<Button-1>",self.changeRelief) def changeRelief(self,event): event.widget.config(relief=SUNKEN) myGUI = GUI() myGUI.mainloop()