вот код с которым тренируюсь
from Tkinter import * def printer(event): root.geometry('200x58+200+211') root.wm_attributes('-alpha',0.5) but['bg']='black' def printer2(event): root.quit() root = Tk() root.wm_attributes('-type','dock') but = Button(root,text='test') but2 = Button(root,text='test2') but.bind("<Button-1>",printer) but2.bind("<Button-1>",printer2) but.pack() but2.pack() root.mainloop()