# viewIcons.rb example

**URL:** <https://www.ruby-forum.com/t/viewicons-rb-example/61160>\
**Category:** Ruby\
**Created:** [January 12, 2006, 3:47pm UTC](https://www.ruby-forum.com/t/viewicons-rb-example/61160 "2006-01-12T15:47:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 12, 2006, 3:47pm UTC](https://www.ruby-forum.com/t/viewicons-rb-example/61160/1 "2006-01-12T15:47:16Z")

</div>

Hello,  
i am programming tk and want to creat and icon on the taskbar. I think  
this  
is the library i am looking for but the examples do not work. I am  
running  
windows xp pro, and the newest version of the one click installer  
1.8.2.15?  
i get this error  
c:/ruby/lib/ruby/1.8/tk/package.rb:86:in `require': TkPackage can't find package icons (RuntimeError) from c:/ruby/lib/ruby/1.8/tkextlib/ICONS/icons.rb:15 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in`require\_\_’  
from c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:18:in  
`require' from c:/ruby/lib/ruby/1.8/tkextlib/ICONS.rb:13 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in`require\_\_’  
from c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:18:in  
`require’  
from viewIcons.rb:11

none of the examples in c:\ruby\samples\tk\tkextlib work, but the  
regular  
tk examples work.

Any idea?  
Becker
