Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #2142

Tk and Tile with Tk8.5

From László Földes <foldes.laszlo2@gmail.com>
Newsgroups comp.lang.ruby
Subject Tk and Tile with Tk8.5
Date 2011-04-01 19:45 -0500
Organization Service de news de lacave.net
Message-ID <07a7e2ba2709d9e19d380257946e93e6@ruby-forum.com> (permalink)

Show all headers | View raw


I want to use Ruby 1.9.1 (Ubuntu 10.10) with Tk8.5 Tile, but this samle
code:

require 'tk'
require 'tkextlib/tile'

root = TkRoot.new { title "Ex1" }

Tk::Tile::Button.new(root) {
  text "Ok"
  command proc { print "Hello, World!"; exit }
  pack('side'=>'left', 'padx'=>10, 'pady'=>10)
}

Tk.mainloop()

fails with:
$ ruby tk_test.rb
/usr/lib/ruby/1.9.1/tkextlib/tile.rb:46:in `rescue in <top (required)>':
undefined method `__cannot_find_tk_package_for_widget_set__' for
Tk:Module (NoMethodError)
  from /usr/lib/ruby/1.9.1/tkextlib/tile.rb:31:in `<top (required)>'
  from <internal:lib/rubygems/custom_require>:29:in `require'
  from <internal:lib/rubygems/custom_require>:29:in `require'
  from tk_test.rb:2:in `<main>'


Googleing for "__cannot_find_tk_package_for_widget_set__" is one of
those rare moments when Google gives back only 1 hit.
Am I doing something wrong? I'm not a source code compiler type, I
installed everything from aptitude (Ruby 1.9.1, Tk8.4, Tk8.5, Tcl8.4,
Tcl8.5)

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Tk and Tile with Tk8.5 László Földes <foldes.laszlo2@gmail.com> - 2011-04-01 19:45 -0500
  Re: Tk and Tile with Tk8.5 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> - 2011-04-01 22:39 -0500
    Re: Tk and Tile with Tk8.5 László Földes <foldes.laszlo2@gmail.com> - 2011-04-02 16:38 -0500
      Re: Tk and Tile with Tk8.5 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> - 2011-04-02 18:57 -0500
  Re: Tk and Tile with Tk8.5 Albert Schlef <albertschlef@gmail.com> - 2011-04-02 21:30 -0500
    Re: Tk and Tile with Tk8.5 László Földes <foldes.laszlo2@gmail.com> - 2011-04-03 15:52 -0500
      Re: Tk and Tile with Tk8.5 Albert Schlef <albertschlef@gmail.com> - 2011-04-04 07:57 -0500
        Re: Tk and Tile with Tk8.5 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> - 2011-04-04 17:16 -0500
          Re: Tk and Tile with Tk8.5 Albert Schlef <albertschlef@gmail.com> - 2011-04-05 09:13 -0500
            Re: Tk and Tile with Tk8.5 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> - 2011-04-05 15:37 -0500

csiph-web