469,366 Members | 2,286 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

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

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
Aug 21 '08 #1
0 739

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by max(01)* | last post: by
5 posts views Thread by max(01)* | last post: by
6 posts views Thread by Bob Greschke | last post: by
1 post views Thread by Michael Yanowitz | last post: by
1 post views Thread by Kevin Walzer | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.