Re: disabling button

2007-12-22 Thread damonjulian
if you disable the button it can still respond to clicks? it only greys out.. or is there a problem with my code here? class MyApp: def __init__(self,parent): self.mainframe=Frame(parent) self.mainframe.pack() self.button1=Button(self.mai

Re: disabling button

2007-12-22 Thread [EMAIL PROTECTED]
an explicit call to "update_idletasks" will clear out the > task queue for you. > it worked Thanks F.L!! dn -- http://mail.python.org/mailman/listinfo/python-list

Re: disabling button

2007-12-22 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > then in the buttonClick(self,event) i want to disable it till some > time consuming calculations are completed ..then i enable it > > def button1Click(self, event): > self.okButton.configure(state=DISABLED) + self.okButton.update_id

disabling button

2007-12-22 Thread [EMAIL PROTECTED]
using tkinter i created a gui and put a button on the frame class mygui: def __init__(self, parent): ... self.okButton = Button(self.btnFrame) self.okButton.configure(width=somewdth,text="OK", anchor=W,disabledforeground="tan") self.okButton.bind("",s