On Wed, 03 May 2006 13:37:31 +0200
Pavel Kosina <[EMAIL PROTECTED]> wrote:


> >
> >     w['menu'].insert('end', 'command', label='blah', command=lambda : 
> > ok_new('blah'))
> >   
> this works with me even without new ok_new - with the old one:
> 
>     w['menu'].insert('end', 'command', label='blah', command=lambda : 
> ok('blah'))
> 

It does not change the value of the variable, so the ok() callback will have to 
do this, like

    def ok(value):
        var.set(value)
        (...)

Now, I forgot about this solution, maybe the easiest of all.

Michael

_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to