N
Nop Nopovich
Hello gents,
I've got a standard ruby instalation (1.8.6) and ActiveState Tcl/Tk 8.4
and 8.5 on Windows XP. What I need is to enable Tile widgets. How to
access them from ruby? It seems like the ruby doesn't know anything
about Tile.
pkg_checker.rb produces the following:
Ready : tile.rb : require->{"tile"=>"0.8.2"}
Ready : tile/dialog.rb : require->{}
Ready : tile/setup.rb : require->{}
Ready : tile/sizegrip.rb : require->{}
...
Actually I don't know how to understand that but looks like the TK 8.5
distribution is OK.
Then I run the following code:
require 'tk'
require 'tkextlib/tile'
root = TkRoot.new { title "Ex1" }
Tile.TkButton.new(root) {
text "Ok"
command proc { print "Hello, World!"; exit }
pack('side'=>'left', 'padx'=>10, 'pady'=>10)
}
Tk.mainloop()
The error is:
test.rb:6: uninitialized constant TileButton (NameError)
So the question is: does anyone know how to enable Tile in my Ruby/Tk
code?
Thanks in advance,
Nop
I've got a standard ruby instalation (1.8.6) and ActiveState Tcl/Tk 8.4
and 8.5 on Windows XP. What I need is to enable Tile widgets. How to
access them from ruby? It seems like the ruby doesn't know anything
about Tile.
pkg_checker.rb produces the following:
Ready : tile.rb : require->{"tile"=>"0.8.2"}
Ready : tile/dialog.rb : require->{}
Ready : tile/setup.rb : require->{}
Ready : tile/sizegrip.rb : require->{}
...
Actually I don't know how to understand that but looks like the TK 8.5
distribution is OK.
Then I run the following code:
require 'tk'
require 'tkextlib/tile'
root = TkRoot.new { title "Ex1" }
Tile.TkButton.new(root) {
text "Ok"
command proc { print "Hello, World!"; exit }
pack('side'=>'left', 'padx'=>10, 'pady'=>10)
}
Tk.mainloop()
The error is:
test.rb:6: uninitialized constant TileButton (NameError)
So the question is: does anyone know how to enable Tile in my Ruby/Tk
code?
Thanks in advance,
Nop