J
John Maclean
Chaps,
There's a small section of code from the second edition of the pickaxe book on p260.
require 'tk'
image1 = TkPhotoImage.new {file "img1.gif" }
image2 = TkPhotoImage.new {file "img2.gif" }
b = TkButton.new(@root) do # <---- This line
# more code
# not shown for sake of brevity
end
# more code
# more code
Am I right in saying that the line that creates the new button has an instance variable that will be used to define the main root "container"?
There's a small section of code from the second edition of the pickaxe book on p260.
require 'tk'
image1 = TkPhotoImage.new {file "img1.gif" }
image2 = TkPhotoImage.new {file "img2.gif" }
b = TkButton.new(@root) do # <---- This line
# more code
# not shown for sake of brevity
end
# more code
# more code
Am I right in saying that the line that creates the new button has an instance variable that will be used to define the main root "container"?