新井です。
Ruby/Tk のリファレンスマニュアル
in.coming/rubytk-19991212.rd.gz
を置きました。
進捗状況をお知らせするためにputしましたが、まだまだまだ、ド
ラフト版です(先は長い・・くじけそうだ)。
・まつもとさんにお願い
お手数ですが、contrib/rubytk.rd.gz は混乱の元なので削除し
ておいてください。よろしくお願いします。
・このマニュアルを書いてる途中で以下のバグに気がつきました。
o TkListbox#size に引数は必要ありませんでした
o TkListbox#selection_includes に引数が必要なようです
Index: ext/tk/lib/tk.rb
===================================================================
RCS file: /home/cvs/ruby/ext/tk/lib/tk.rb,v
retrieving revision 1.4
diff -u -p -u -r1.4 tk.rb
--- ext/tk/lib/tk.rb 1999/12/06 09:04:00 1.4
+++ ext/tk/lib/tk.rb 1999/12/12 13:15:25
@@ -2150,7 +2150,7 @@ class TkListbox<TkTextWin
def nearest(y)
tk_send('nearest', y).to_i
end
- def size(y)
+ def size
tk_send('size').to_i
end
def selection_anchor(index)
@@ -2159,8 +2159,8 @@ class TkListbox<TkTextWin
def selection_clear(first, last=None)
tk_send 'selection', 'clear', first, last
end
- def selection_includes
- bool(tk_send('selection', 'includes'))
+ def selection_includes(index)
+ bool(tk_send('selection', 'includes', index))
end
def selection_set(first, last=None)
tk_send 'selection', 'set', first, last
--
新井康司 (Koji Arai)