![]() |
|
|
+ Search |
![]()
|
Mar 22nd, 2006 22:07
Waldi Wolf, Moo Master,
from Tkinter import *
.
.
.
def click(ptr):
txt = ptr.widget['text']
if txt == 'Close':
.........
.
.
.
bt=Button(parent, text='Close',......)
bt.bind('<Button-1>',click)
bt.pack() # or whatever