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


Groups > comp.lang.ruby > #2142

Tk and Tile with Tk8.5

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail
From László Földes <foldes.laszlo2@gmail.com>
Newsgroups comp.lang.ruby
Subject Tk and Tile with Tk8.5
Date Fri, 1 Apr 2011 19:45:24 -0500
Organization Service de news de lacave.net
Lines 36
Message-ID <07a7e2ba2709d9e19d380257946e93e6@ruby-forum.com> (permalink)
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1301705137 91112 65.111.164.187 (2 Apr 2011 00:45:37 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Sat, 2 Apr 2011 00:45:37 +0000 (UTC)
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 380790
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <07a7e2ba2709d9e19d380257946e93e6@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:2142

Show key headers only | 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