Tkinter - changing existing Dialog?

Cameron Laird claird at
Fri Jun 2 02:57:06 CEST 2006

In article <mailman.6401.1149165099.27775.python-list at>,
Michael Yanowitz <m.yanowitz at> wrote:
>   I have a Tkinter GUI Dialog with many buttons and labels and text
>What I would like to do is, can I:
>1) Disable/deactivate/hide a button, text widget that is already drawn (and
>   of course the opposite enable/activate/show it)?
  import Tkinter

  root = Tkinter.Tk()

  def actions():
      print "Someone pushed the button."
      b.configure(state = Tkinter.DISABLED)

  b = Tkinter.Button(root, text = "Push me", command = actions)

More information about the Python-list mailing list