How to get Checkbutton Handle?

Marc mnations at airmail.net
Fri Mar 22 18:05:59 EST 2002


This seems like an easy question, but that answer has proven fairly
difficult. I am simply trying to get the checkbutton handle back,
exactly the same way I do it with the Label or RadioButtons, etc. I am
doing it this way:

self.allCheck = IntVar()
		self.allButton = Checkbutton(albutFrame, text="Check to select all
test scenarios", state=NORMAL, anchor=W,
					variable = self.allCheck, command = self.selectAll).pack()
		print "allButton location is ", self.allButton

But I don't get the handle back. All I get is this:

allButton location is  None

However, when I try to do similar commands on Labels and RadioButtons,
I get back the handles and am able to manipulate them. Examples:

modLabel =  .10631632.10631184.10637280.10626480
self.radio = .10631632.10958736.11020496.11075712.11082384
self.radio = .10631632.10958736.11020496.11075712.11083600
self.radio = .10631632.10958736.11020496.11075712.11080800

How in the world do you get back Checkbutton handles?

Thanks in advance,
Marc



More information about the Python-list mailing list