sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
dudeja.rajat@gmail.com's Avatar

Tkinter/WindowsXP - how to use checkbutton to toggle a label in GUI?


Question posted by: dudeja.rajat@gmail.com (Guest) on August 21st, 2008 09:15 AM
Hi,

I've a checkbutton in my GUI application which I want to work as:

1. it should be un-ticked by default,
2. should display a label in Gui, by default,
3. when user ticks the check button this should the above label goes
off the screen and not longer is
displayed.

Please suggest how could I do this:

my code for the check button and label is :

#Check button
varTestAll = IntVar()
self.cbTestAll = Checkbutton(master, text="Test All", variable=varTestAll )

self.cbTestAll.grid(row = 12, column = 1, sticky = W, pady = 30, padx = 30)


#Label - Version under Test
self.lblVersionUnderTest = Label(master, \
text = "v2.1.5.0")
self.lblVersionUnderTest.grid(row = 15, \
column = 2, \
sticky = W, \
padx = 30)


Please suggest.

Thanks,
Rajat
0 Answers Posted
 
Not the answer you were looking for? Post your question . . .
197,050 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 197,050 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors