diff options
Diffstat (limited to 'ext/tk/sample/demos-jp/colors.rb')
-rw-r--r-- | ext/tk/sample/demos-jp/colors.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/tk/sample/demos-jp/colors.rb b/ext/tk/sample/demos-jp/colors.rb index 9fcf0333b5..5e5f47cb04 100644 --- a/ext/tk/sample/demos-jp/colors.rb +++ b/ext/tk/sample/demos-jp/colors.rb @@ -1,15 +1,15 @@ -# -*- coding: euc-jp -*- +# -*- coding: utf-8 -*- # # listbox widget demo 'colors' (called by 'widget') # -# toplevel widget が存在すれば削除する +# toplevel widget 絖医ゃ if defined?($colors_demo) && $colors_demo $colors_demo.destroy $colors_demo = nil end -# demo 用の toplevel widget を生成 +# demo toplevel widget $colors_demo = TkToplevel.new {|w| title("Listbox Demonstration (colors)") iconname("colors") @@ -18,20 +18,20 @@ $colors_demo = TkToplevel.new {|w| base_frame = TkFrame.new($colors_demo).pack(:fill=>:both, :expand=>true) -# label 生成 +# label msg = TkLabel.new(base_frame) { font $font wraplength '4i' justify 'left' - text "下には色の名前が入ったスクロールバー付のリストボックスが表示されています。リストをスクロールさせるのはスクロールバーでもできますし、リストボックスの中でマウスのボタン2(中ボタン)を押したままドラッグしてもできます。ある色をボタン1(左ボタン)でダブルクリックするとアプリケーション全体がその色になります。" + text "筝蚊ャc鴻若寂鴻鴻茵腓冴障鴻鴻若鴻若若сс障鴻鴻筝с鴻帥2(筝帥)若障障違с障蚊帥1(綏帥)с≪宴若激с喝篏蚊障" } msg.pack('side'=>'top') -# frame 生成 +# frame TkFrame.new(base_frame) {|frame| TkButton.new(frame) { - #text '了解' - text '閉じる' + #text '篋茹' + text '' command proc{ tmppath = $colors_demo $colors_demo = nil @@ -40,13 +40,13 @@ TkFrame.new(base_frame) {|frame| }.pack('side'=>'left', 'expand'=>'yes') TkButton.new(frame) { - text 'コード参照' + text '潟若' command proc{showCode 'colors'} }.pack('side'=>'left', 'expand'=>'yes') }.pack('side'=>'bottom', 'fill'=>'x', 'pady'=>'2m') -# frame 生成 +# frame colors_lbox = nil TkFrame.new(base_frame, 'borderwidth'=>10) {|w| s = TkScrollbar.new(w) |