From: Jon Forums Date: 2012-01-07T05:58:56+09:00 Subject: Re: Tk Bwidget on windows > Hello, I am trying to do a progress bar via the Tk BWidgets thing and > the following line taken from the (otherwise extremely helpful) > tutorialspoint ruby examples... > > require 'tkextlib/bwidget' > > ....gives an error "TkPackage can't find package BWidget". > > I am using ruby 193 on Windows. Any clues much appreciated. The normal > Tk things all seem to work fine... just stuck with the progressbar! I'm not a Tk guy, but this works for me on 1.9.3p0 on Win7 32bit: require 'tk' require 'tkextlib/tile' TkT = Tk::Tile root = TkRoot.new { title 'Progressbar Demo' } content = TkT::Frame.new(root) { padding '3 3 12 12' }.grid(:sticky => 'nsew') TkGrid.columnconfigure(root, 0, :weight => 1) TkGrid.rowconfigure(root, 0, :weight => 1) p = TkT::Progressbar.new(content) do orient 'horizontal' length 200; mode 'determinate' end.grid(:column => 1, :row => 1, :sticky => 'we') position = TkVariable.new position.value = 20 p.variable = position Tk.mainloop Jon --- Fail fast. Fail often. Fail publicly. Learn. Adapt. Repeat. http://thecodeshop.github.com | http://jonforums.github.com/ twitter: @jonforums -- Posted via http://www.ruby-forum.com/.