summaryrefslogtreecommitdiffstats
path: root/ext/tk/sample/demos-jp
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-10 10:14:13 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-10 10:14:13 +0000
commit5c0a7a0d5d2cb1bb22b7d2668510d659d67fd86d (patch)
tree8afc849e858fd04167e578c92c2ae02f1da24f69 /ext/tk/sample/demos-jp
parentf3637570526dc41ab5d8c508a21e25f0a9fbde31 (diff)
downloadruby-5c0a7a0d5d2cb1bb22b7d2668510d659d67fd86d.tar.gz
ruby-5c0a7a0d5d2cb1bb22b7d2668510d659d67fd86d.tar.xz
ruby-5c0a7a0d5d2cb1bb22b7d2668510d659d67fd86d.zip
* ext/tcltklib/tcltklib.c (lib_eventloop_ensure): mis-delete a timer
handler when exit from a recursive called eventloop * ext/tk/lib/tk/timer.rb: new TkRTTimer class, which can works for a realtime operation * ext/tk/sample/tkrttimer.rb: sample of TkRTTimer class * ext/tk/lib/tk/textmark.rb: move TkTextMark#+ and TkTextMark#- to TkText::IndexModMethods * ext/tk/lib/tk/text.rb: improve TkTextMark#+ and TkTextMark#-, and add them to TkText::IndexModMethods module * ext/tk/sample/tktextio.rb: add test part of "seek by text index modifiers" git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/demos-jp')
-rw-r--r--ext/tk/sample/demos-jp/widget12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/tk/sample/demos-jp/widget b/ext/tk/sample/demos-jp/widget
index 59d6309d5..7c559d2a0 100644
--- a/ext/tk/sample/demos-jp/widget
+++ b/ext/tk/sample/demos-jp/widget
@@ -552,10 +552,10 @@ else # ver >= 8.4
end
# テキスト上での click に対する動作
-def invoke (txt, index)
- tag = txt.tag_names(index).find{|t| t.kind_of?(String) && t =~ /^demo-/}
+def invoke (txt, idx)
+ tag = txt.tag_names(idx).find{|t| t.kind_of?(String) && t =~ /^demo-/}
return unless tag
- cursor = txt.cget('cursor')
+ current_cursor = txt.cget('cursor')
txt.cursor('watch')
Tk.update
# eval `cat #{tag[5..-1]}.rb`
@@ -563,9 +563,9 @@ def invoke (txt, index)
eval IO.readlines("#{[$demo_dir, tag[5..-1]].join(File::Separator)}.rb").join
Tk.update
# txt.cursor('xterm')
- txt.cursor(cursor)
+ txt.cursor(current_cursor)
- $tag_visited.add("#{index} linestart +1 chars", "#{index} lineend +1 chars")
+ $tag_visited.add("#{idx} linestart +1 chars", "#{idx} lineend +1 chars")
end
# 状態表示
@@ -819,7 +819,7 @@ end
#
def aboutBox
Tk.messageBox('icon'=>'info', 'type'=>'ok', 'title'=>'About Widget Demo',
- 'message'=>"Ruby/Tk ウィジェットデモ Ver.1.5.2-jp\n\n" +
+ 'message'=>"Ruby/Tk ウィジェットデモ Ver.1.5.3-jp\n\n" +
"based on demos of Tk8.1 -- 8.5 " +
"( Copyright:: " +
"(c) 1996-1997 Sun Microsystems, Inc. / " +