The code on Lesson 6 - for a radio box - looks a tad complex; but when all is
said and done, the code yells "Hamburger' to the cook, so maybe not that
daunting after all.
The radiobox is a pre-defined widget that only allows the user to make one choice
from many possibilities. Our example offer both text and image versions of the choices
in question. The order() function, defined prior to the window, is a loop that goes
through the index numbers on the food array. One needs to create an x variable for this
to work, and it is an integer variable. The food choices in the array are strings,
and the images, PhotoImage, as with previous widgets.
The pack() function here uses anchor(W) -west - for which I am adding a reference
scheme from another tutorial.
* * *
No comments:
Post a Comment