[#3564] ruby home page moved — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
[#3567] Nil is a subclass of Object? — shugo@... (maeda shugo)
前田です。
まつもと ゆきひろです
けいじゅ@日本ラショナルです.
まつもと ゆきひろです
前田です。
まつもと ゆきひろです
[#3608] We have access to Nil on ruby 1.0 — shugo@... (maeda shugo)
前田です。
[#3614] [Request] File.readlines — keiju@... (Keiju ISHITSUKA)
けいじゅ@いそうろう.日本ラショナルです.
まつもと ゆきひろです
[#3616] ftplib.rb — shugo@... (maeda shugo)
前田です。
[#3629] LaTeX ruby documents — Eiji-usagi-MATSUmoto <ematsu@...>
うさぎです。
[#3638] ftplib.rb & ftpmirror — shugo@... (maeda shugo)
前田です。
[#3676] MSVC compile error — toyofuku@...
豊福@パパイヤです。
[#3689] [BUG] inspect — keiju@... (Keiju ISHITSUKA)
けいじゅ@日本ラショナルです.
[#3690] new sync.rb release — keiju@... (Keiju ISHITSUKA)
けいじゅ@日本ラショナルです.
前田です。
[#3693] ftplib.rb revision 1.4 — shugo@... (前田 修吾 / maeda shugo)
前田です。
[#3714] ruby 1.0-970819 released — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
[#3715] may i make a ruby.rpm? — Shoichi OZAWA <ozawa@...>
こんにちは 小澤@日立 です。
まつもと ゆきひろです
小澤@日立 です。
[#3736] module for GNU Readline Library — shugo@... (前田 修吾 / maeda shugo)
前田です。
まつもと ゆきひろです
前田です。
まつもと ゆきひろです
[#3738] [BUG] a[0] += 1 (ruby-1.0-970820) — WATANABE Hirofumi <watanabe@...>
わたなべです.
まつもと ゆきひろです
[#3749] regex? (ruby-1.0-970820) — jkuro@... (Jun Kuroda)
黒田です。
[#3769] link image for ruby — shugo@... (前田 修吾 / maeda shugo)
前田です。
原です。
まつもと ゆきひろです
前田です。
[#3773] PostgreSQL module is released. — Eiji-usagi-MATSUmoto <ematsu@...>
うさぎです。
[#3785] rbdj0821.zip, rbgw0821.zip — WATANABE Hirofumi <watanabe@...>
わたなべです.
まつもと ゆきひろです
[#3786] [Q] How to open — Shin-ichiro Hara <sinara@...>
原です
助田です
原です。
[#3812] SyslogSendmail class — takagi@... (TAKAGI Hiromitsu)
【皆で学ぼうシリーズ(1)】
[#3819] multi-dimensional array — aito@...5sun.yz.yamagata-u.ac.jp
こんにちは,あ伊藤@山形大学です.
[#3833] [Bug] Regexp.quote — shugo@... (前田 修吾 / maeda shugo)
前田です。
助田です。
まつもと ゆきひろです
助田です
けいじゅ@日本ラショナルです.
まつもと ゆきひろです
けいじゅ@日本ラショナルソフトウェアです.
まつもと ゆきひろです.
けいじゅ@日本ラショナルソフトウェアです.
[#3839] Re: SyslogSendmail class — takagi@... (TAKAGI Hiromitsu)
> そうですね.本当はこーゆーのが ruby-list の本来の形ですね.
まつもと ゆきひろです
けいじゅ@日本ラショナルソフトウェアです.
前田です。
まつもと ゆきひろです
前田です。
まつもと ゆきひろです
前田です。
[#3868] call for impression — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
[#3869] Re: SyslogSendmail class — takagi@... (TAKAGI Hiromitsu)
> Moduleのところに書いてあるんですねえ.こういうノウハウを記述
まつもと ゆきひろです
前田です。
まつもと ゆきひろです
前田です。
まつもと ゆきひろです
[#3872] Re: SyslogSendmail class — takagi@... (TAKAGI Hiromitsu)
> | attr [:date, TRUE], [:time], [:process_name, TRUE]
前田です。
まつもと ゆきひろです
[#3892] manual html by lynx — Kikutani Makoto <kikutani@...>
きくたにです。
[#3901] class variable — toyofuku@...
豊福@パパイヤです。
まつもと ゆきひろです
前田です。
[#3906] document for beginner — toyofuku@...
豊福@パパイヤです。
きくたにです。
助田です
Fri, Aug 29, 1997 at 12:54:15PM +0900 において
助田です
きくたにです。
まつもと ゆきひろです
[#3933] Re: ruby constants — toyofuku@...
豊福@パパイヤです。
まつもと ゆきひろです
わたなべです.
わたなべです.
まつもと ゆきひろです
わたなべです.
> これは ANSI C でも使えます.
まつもと ゆきひろです
[#3951] Re: document for beginner — toyofuku@...
豊福@パパイヤです。
[ruby-list:3556] Re: text tag (ruby/tk)
まつもと ゆきひろです
In message "[ruby-list:3544] text tag (ruby/tk)"
on 97/07/31, Noritsugu Nakamura <nnakamur@mxq.meshnet.or.jp> writes:
|中村です。
|
|また、分からないことが出てきてしまいました。
|ruby/tk の Text Widget での tag の使用法に
|ついてです。
|
|例えば、以下と同じプログラムを書きたいのですが、
|どう書けばよいのでしょうか?
|
|#!/usr/local/bin/wish4.2
|
|text .t -width 30 -height 10
|pack .t
|
|.t tag configure big -font -*-Helvetica-Bold-R-Normal--*-180-*-*-*-*-*-*
|
|.t insert end "Text Tag\n" big
|.t insert end "normal size\n"
いやあ,バグってました.添付のパッチを当てた後では以下のよう
になります.
#!/usr/local/bin/ruby
require "tk"
text = TkText.new {
width 30
height 10
pack
}
big = TkTextTag.new(text,"font" => "-*-Helvetica-Bold-R-Normal--*-180-*-*-*-*-*-*")
text.insert "end", "Text Tag\n", big
text.insert "end", "normal size\n"
Tk.mainloop
--
--- lib/tktext.rb~ Sun Jul 27 00:27:59 1997
+++ lib/tktext.rb Fri Aug 1 13:06:24 1997
@@ -26,6 +26,5 @@
end
- def _addtag(cmd)
- @cmdtbl.push id
+ def _addtag(name, obj)
+ @tags[name] = obj
end
- private :_addcmd, :_addtag
def tag_names
@@ -88,3 +87,3 @@
$tk_text_tag = 'tag0000'
- def initialize(parent)
+ def initialize(parent, keys=nil)
if not parent.kind_of?(TkText)
@@ -93,5 +92,5 @@
@t = parent
- @path = parent.path
- @id = $tk_text_tag
+ @path = @id = $tk_text_tag
$tk_text_tag = $tk_text_tag.succ
+ tk_call @t.path, "tag", "configure", @id, *hash_kv(keys)
@t._addtag id, self
@@ -103,7 +102,7 @@
def add(*index)
- tk_call path, 'tag', 'add', @id, *index
+ tk_call @t.path, 'tag', 'add', @id, *index
end
- def configure(slot, value)
- tk_call path, 'tag', 'configure', id, "-#{slot}", value
+ def configure(keys)
+ tk_call @t.path, 'tag', 'configure', @id, *hash_kv(keys)
end
@@ -112,3 +111,3 @@
id = install_cmd(cmd)
- tk_call path, 'tag', 'bind', tag, "<#{seq}>", id
+ tk_call @t, 'tag', 'bind', tag, "<#{seq}>", id
@t._addcmd cmd
@@ -117,3 +116,3 @@
def lower(below=None)
- tk_call path, 'tag', 'lower', below
+ tk_call @t.path, 'tag', 'lower', below
end
@@ -121,3 +120,3 @@
def destroy
- tk_call path, 'tag', 'delete', @id
+ tk_call @t.path, 'tag', 'delete', @id
end
@@ -132,6 +131,5 @@
@t = parent
- @path = parent.path
- @id = $tk_text_mark
+ @path = @id = $tk_text_mark
$tk_text_mark = $tk_text_mark.succ
- tk_call @t, 'set', @id, index
+ tk_call @t.path, 'set', @id, index
@t._addtag id, self
@@ -143,3 +141,3 @@
def set(where)
- tk_call path, 'mark', 'unset', @id, where
+ tk_call @t.path, 'mark', 'unset', @id, where
end
@@ -147,3 +145,3 @@
def unset
- tk_call path, 'mark', 'unset', @id
+ tk_call @t.path, 'mark', 'unset', @id
end
@@ -158,5 +156,4 @@
@t = parent
- @path = parent.path
- @index = index
- tk_call @path, 'window', 'create', index, *args
+ @path = @index = index
+ tk_call @t.path, 'window', 'create', index, *args
end
@@ -164,3 +161,3 @@
def configure(slot, value)
- tk_call path, 'window', 'configure', @index, "-#{slot}", value
+ tk_call @t.path, 'window', 'configure', @index, "-#{slot}", value
end