Tkinter - changing existing Dialog?

Michael Yanowitz m.yanowitz at kearfott.com
Fri Jun 2 08:20:42 EDT 2006


Thanks.

  That is what I was looking for. The configure command (as you and John
pointed out),
should do what I need. The first response of starting a new thread was not
what I was
looking for.

Michael Yanowitz


-----Original Message-----

In article <mailman.6401.1149165099.27775.python-list at python.org>,
Michael Yanowitz <m.yanowitz at kearfott.com> wrote:
>Hello:
>
>
>   I have a Tkinter GUI Dialog with many buttons and labels and text
>widgets.
>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)
  b.pack()
  root.mainloop()





More information about the Python-list mailing list