Problem with understanding the PhotoView class
Thomas Wiecz...
5 posts
|
I finished the third chapter and I am right now starting the fourth, but I don’t get one thing. Where does the PhotoView class gets its knowlegde of the
class PhotoView < FXImageFrame
def initialize(p, photo)
super(p, nil)
load_image(photo.path)
end
def load_image(path)
File.open(path, "rb") do |file|
# I don't get it why "app" works!
self.image = FXJPGImage.new(app, file.read)
end
end
end
|
Thomas Wiecz...
5 posts
|
All right, I get it! Sorry for the ruckus |
Lyle Johnson
21 posts
|
Thomas, you are a fast reader! Glad you figured it out on your own, but I’ll make a note to myself that that could be clearer in the book’s discussion of the code. |
Thomas Wiecz...
5 posts
|
It’s a great book and I like how you go through the iterations. IMHO it is more readable, when I add |
4 posts, 2 voices
