3
require 'tkextlib/iwidgets'
5
Tk::Iwidgets::Extbutton.new(:text=>'Bitmap example', :bitmap=>'info',
6
:background=>'bisque', :activeforeground=>'red',
7
:bitmapforeground=>'blue', :defaultring=>true,
9
puts "Bisque is beautiful"
10
}).pack(:expand=>true)
12
#img = TkPhotoImage.new(:file=>File.join(File.dirname(File.expand_path(__FILE__)), '../../../images/earthris.gif'))
13
img = TkPhotoImage.new(:file=>File.join(File.dirname(File.expand_path(__FILE__)), '../catalog_demo/images/clear.gif'))
15
Tk::Iwidgets::Extbutton.new(:text=>'Image example', :relief=>:ridge,
16
:image=>img, :imagepos=>:e, :font=>'9x15bold',
17
:activebackground=>'lightyellow',
18
:background=>'lightgreen').pack(:expand=>true)