Re: multiple check boxes
From: Peter Otten (__peter___at_web.de)
Date: 11/01/03
- Next message: Alex Martelli: "Re: XML-RPC"
- Previous message: Ben: "XML-RPC"
- In reply to: Harish Vaidya: "multiple check boxes"
- Next in thread: Harish Vaidya: "Re: multiple check boxes"
- Reply: Harish Vaidya: "Re: multiple check boxes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 01 Nov 2003 10:34:42 +0100
Harish Vaidya wrote:
>
> hi,
> i am trying to use multiple checkboxes.
> what is happening is once select check box its
> variable is not getting set. below is the code. what
> could be the problem? i am using python 2.0
> thanks in advance
I do not fully understand what you're are trying to achieve with your code,
but this observation might help you anyway:
[...]
> b1 = Button(top,
> text='OK!',command=TestCases())
[...]
> b = Button(root, text='OK!',command=hostTC())
[...]
In both cases you do the eqivalent of
b = Button(..., command=None)
as both TestCases() and hostTC() do not explicitly return a value.
You probably want the buttons to invoke TestCases() or hostTC(), and you
therefore must omit the trailing (), e. g.:
b = Button(root, text='OK!',command=hostTC)
Peter
- Next message: Alex Martelli: "Re: XML-RPC"
- Previous message: Ben: "XML-RPC"
- In reply to: Harish Vaidya: "multiple check boxes"
- Next in thread: Harish Vaidya: "Re: multiple check boxes"
- Reply: Harish Vaidya: "Re: multiple check boxes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]