# Button with images (newb)

**URL:** <https://www.ruby-forum.com/t/button-with-images-newb/179385>\
**Category:** Ruby\
**Created:** [November 23, 2009, 11:16pm UTC](https://www.ruby-forum.com/t/button-with-images-newb/179385 "2009-11-23T23:16:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![belitos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/67e7ee/32.png) [@belitos](https://www.ruby-forum.com/u/belitos)\
**Post date:** [November 23, 2009, 11:16pm UTC](https://www.ruby-forum.com/t/button-with-images-newb/179385/1 "2009-11-23T23:16:40Z")

</div>

Hey guys,  
i just want to add a png file to a button, but the image is not  
visibile…  
im doing this

imgOk = Gtk::Image.new(“run.png”)

ok = Gtk::Button.new “Calcular”  
ok.set\_size\_request 70, 30  
ok.image = imgOk

whats the problem?  
thanks
