User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 373,494 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,875 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser:

Python GUI Problem

Join Date: Jul 2006
Posts: 562
Reputation: jrcagle is on a distinguished road 
Rep Power: 4
Solved Threads: 71
jrcagle jrcagle is offline Offline
Posting Pro

Re: Python GUI Problem

  #9  
Aug 20th, 2007
Here's a working small version:

  1. from Tkinter import *
  2. def disable():
  3. root.button["state"] = DISABLED
  4.  
  5. root = Tk()
  6. root.button = Radiobutton(root, text="My Button")
  7. root.button2 = Button(root, text="Disable the Radiobutton", command=disable)
  8. root.button.grid()
  9. root.button2.grid()
  10. root.mainloop()

Hope it helps,

Jeff
Reply With Quote  
All times are GMT -4. The time now is 5:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC