diff options
author | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-14 17:25:37 +0000 |
---|---|---|
committer | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-14 17:25:37 +0000 |
commit | 2fecb27eb47333fda1e0049584d6b56dd336197f (patch) | |
tree | 6a549de0a4c3980bb4c58b0de3055fd0b9756fbf /ext/tk/sample/demos-jp/anilabel.rb | |
parent | 9da539cce9e823ab78699a8784eacfe789e67f6d (diff) | |
download | ruby-2fecb27eb47333fda1e0049584d6b56dd336197f.tar.gz |
Merge branch 'tk_utf8' into trunk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/demos-jp/anilabel.rb')
-rw-r--r-- | ext/tk/sample/demos-jp/anilabel.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/tk/sample/demos-jp/anilabel.rb b/ext/tk/sample/demos-jp/anilabel.rb index d2f5b12041..c882f43f7e 100644 --- a/ext/tk/sample/demos-jp/anilabel.rb +++ b/ext/tk/sample/demos-jp/anilabel.rb @@ -1,16 +1,16 @@ -# -*- coding: euc-jp -*- +# -*- coding: utf-8 -*- # # animated label widget demo (called by 'widget') # # based on Tcl/Tk8.5a2 widget demos -# toplevel widget が存在すれば削除する +# toplevel widget 絖医ゃ if defined?($anilabel_demo) && $anilabel_demo $anilabel_demo.destroy $anilabel_demo = nil end -# demo 用の toplevel widget を生成 +# demo toplevel widget $anilabel_demo = TkToplevel.new {|w| title("Animated Label Demonstration") iconname("anilabel") @@ -19,20 +19,20 @@ $anilabel_demo = TkToplevel.new {|w| base_frame = TkFrame.new($anilabel_demo).pack(:fill=>:both, :expand=>true) -# label 生成 +# label msg = TkLabel.new(base_frame) { font $font wraplength '4i' justify 'left' - text "下には4つのアニメーションラベルが表示されています。左側にあるラベルは、内部のテキストメッセージをスクロールしたように見せることで動きを付けています。右側のラベルは、表示するイメージを変化させることで動きを与えています。" + text "筝4ゃ≪<若激с潟茵腓冴障綏眼鴻<祉若吾鴻若荀у篁障勀眼茵腓冴ゃ<若吾紊у筝障" } msg.pack('side'=>'top') -# frame 生成 +# frame TkFrame.new(base_frame) {|frame| TkButton.new(frame) { - #text '了解' - text '閉じる' + #text '篋茹' + text '' command proc{ tmppath = $anilabel_demo $anilabel_demo = nil @@ -41,13 +41,13 @@ TkFrame.new(base_frame) {|frame| }.pack('side'=>'left', 'expand'=>'yes') TkButton.new(frame) { - text 'コード参照' + text '潟若' command proc{showCode 'anilabel'} }.pack('side'=>'left', 'expand'=>'yes') }.pack('side'=>'bottom', 'fill'=>'x', 'pady'=>'2m') -# label demo 用フレーム生成 +# label demo 若 f_left = TkLabelFrame.new(base_frame, :text=>'Scrolling Texts') f_right = TkLabelFrame.new(base_frame, :text=>'GIF Image') Tk.pack(f_left, f_right, 'side'=>'left', 'expand'=>'yes', 'fill'=>'both', @@ -123,7 +123,7 @@ class AnimatedImageLabel < AnimatedTextLabel private :_animation_callback end -# label 生成 +# label l1 = AnimatedTextLabel.new(f_left, :borderwidth=>4, :relief=>:ridge, :font=>{:family=>'Courier', :size=>10}) l2 = AnimatedTextLabel.new(f_left, :borderwidth=>4, :relief=>:groove, |