[#39325] File.fnmatch の改良について — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

はじめまして、山本です。

18 messages 2004/03/05

[#39429] trial version of Ruby/Tk — Hidetoshi NAGAI <nagai@...>

永井@知能.九工大です.

18 messages 2004/03/23
[#39454] Re: trial version of Ruby/Tk — "Shirai,Kaoru" <shirai@...> 2004/03/31

白井です。

[#39460] Re: trial version of Ruby/Tk — Hidetoshi NAGAI <nagai@...> 2004/04/01

永井@知能.九工大です.

[#39465] Re: trial version of Ruby/Tk — "Shirai,Kaoru" <shirai@...> 2004/04/01

白井です。

[#39466] Re: trial version of Ruby/Tk — Hidetoshi NAGAI <nagai@...> 2004/04/01

永井@知能.九工大です.

[#39453] Re: int/int in Ruby2? — Masaaki Sakano <mas@...>

坂野 正明です。

36 messages 2004/03/31
[#39455] Re: int/int in Ruby2? — NISHIMATSU Takeshi <t-nissie@...> 2004/03/31

西松と申します.

[#39470] Re: int/int in Ruby2? — Masaaki Sakano <mas@...> 2004/04/01

坂野 正明です。

[#39473] Re: int/int in Ruby2? — matz@... (Yukihiro Matsumoto) 2004/04/01

まつもと ゆきひろです

[#39484] Re: int/int in Ruby2? — Masaaki Sakano <mas@...> 2004/04/03

坂野 正明です。

[#39528] Re: int/int in Ruby2? — "T Akutsu" <locrian@...> 2004/04/09

あくつです。なんかわくわくしてきだぞ。(^^;)

[ruby-list:39400] Re: ruby-gtk2でのclassの書き方

From: KATO Kazuyoshi <kzys@...>
Date: 2004-03-21 01:21:04 UTC
List: ruby-list #39400
和良です。

On Sun, 21 Mar 2004 05:07:26 +0900
yeru@v006.vaio.ne.jp wrote:
> $ ./divertion.rb 
> ./divertion.rb:74:in `append_page': fundamental type GBoxed isn't
> supported (TypeError)
> 
>         from ./divertion.rb:74:in `initialize'
>         from ./divertion.rb:83:in `new'
>         from ./divertion.rb:83
> などと出てしまいます。

Diversion が Gtk::Widget を継承していからです。
http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ANotebook

この場合なら、
  class Diversion < Gtk::ScrolledWindow
      def initialize
          super()
          border_width = 10
          ...
          @divertmodel = Gtk::ListStore.new(String, String, String)
	  treeview = Gtk::TreeView.new(@divertmodel)
          ...
         add(treeview)
     end
というふうにすれば Gtk::Notebook#append_page で使えると思います。

# gsysview、便利そうなので楽しみにしています :-)
-- 
KATO Kazuyoshi  http://8-p.info/

In This Thread