From: "Hal E. Fulton" Date: 2001-07-11T11:04:04+09:00 Subject: [ruby-talk:17637] TkPhoto on a button Ruby/Tk question for you all. I was trying to add an image to a couple of buttons (following the _Learning Perl/Tk_ book) and tried this basic format (see below). Trouble is, it doesn't seem to have heard of TkPhoto. I found a TkPhotoImage referred to in one of the *.rb files, but that didnt' work either. Those who know Tk, does this generally look correct? Hal # ... leftImg = TkPhoto("file"=>"left.gif") rightImg = TkPhoto("file"=>"right.gif") TkButton.new(bottom) do image leftImg command proc { blah blah blah... } pack $params end TkButton.new(bottom) do image rightImg command proc { blah blah blah... } pack $params end #...