On Thu, Jul 21, 2016 at 11:30 PM, Alan Gauld via Tutor wrote:
>
> Forwarding to list. Please use reply-all when responding to tutor messages.
>
> As Danny suggested this is quite a complex problem. I wasn't sure whether
> it was just the programming or the bigger algorithm issue you were stuck on.
I have been working my way through a Python 3 book and got to the
chapter on tkinter. The following is a segment of a example program that
works:
# the views
frame = tkinter.Frame(window)
frame.pack()
button = tkinter.Button(frame, text='Up', command=click_up)
button.pack()
button = tkinter.But
> button = tkinter.Button(frame, text='Up', command=click_up)
> button = tkinter.Button(frame, text='Down', command=click_down)
> when I first looked at it I thought it would not work, thinking that the
> second reference to button = would over write the first one.
It DOES overwrite it, in this