canvas.pack #show gif on the canvas
image = TkPhotoImage.new(‘file’ => ‘red_pen.gif’)
t=TkcImage.new(canvas, 100, 100,
‘image’ => image) #end of show gif code. #code to place a label to show text
TkLabel.new {
text “This is a label”
font TkFont.new(‘times 10 normal’)
}.pack #end of code to show text
canvas.focus
There’s not enough code to create a working example, so this is just a
guess, but I would ask where "exit’ is defined.
so the problem would be there?
That depends. It depends on what you mean when you say it doesn’t work.
Obviously if you call “exit” and “exit” has been redefined, or hangs for
some reason, you will get the symptom that the application doesn’t exit.
It
might be a good idea to trace the action to see where it goes.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.