diff options
Diffstat (limited to 'ext/tk/sample/demos-jp/filebox.rb')
-rw-r--r-- | ext/tk/sample/demos-jp/filebox.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ext/tk/sample/demos-jp/filebox.rb b/ext/tk/sample/demos-jp/filebox.rb index ffe5fbc5c6..fc014bc282 100644 --- a/ext/tk/sample/demos-jp/filebox.rb +++ b/ext/tk/sample/demos-jp/filebox.rb @@ -1,15 +1,15 @@ -# -*- coding: euc-jp -*- +# -*- coding: utf-8 -*- # # widget demo prompts the user to select a file (called by 'widget') # -# toplevel widget が存在すれば削除する +# toplevel widget 絖医ゃ if defined?($filebox_demo) && $entry2_demo $filebox_demo.destroy $filebox_demo = nil end -# demo 用の toplevel widget を生成 +# demo toplevel widget $filebox_demo = TkToplevel.new {|w| title("File Selection Dialogs") iconname("filebox") @@ -18,15 +18,15 @@ $filebox_demo = TkToplevel.new {|w| base_frame = TkFrame.new($filebox_demo).pack(:fill=>:both, :expand=>true) -# label 生成 +# label TkLabel.new(base_frame,'font'=>$font,'wraplength'=>'4i','justify'=>'left', - 'text'=>"エントリにファイル名を直接入力するか、\"Browse\" ボタンを押してファイル選択ダイアログからファイル名を選んで下さい。").pack('side'=>'top') + 'text'=>"潟<ゃ贋・ュ\"Browse\" 帥潟若<ゃ御ゃ≪違<ゃ吾т").pack('side'=>'top') -# frame 生成 +# frame TkFrame.new(base_frame) {|frame| TkButton.new(frame) { - #text '了解' - text '閉じる' + #text '篋茹' + text '' command proc{ tmppath = $filebox_demo $filebox_demo = nil @@ -35,15 +35,15 @@ TkFrame.new(base_frame) {|frame| }.pack('side'=>'left', 'expand'=>'yes') TkButton.new(frame) { - text 'コード参照' + text '潟若' command proc{showCode 'filebox'} }.pack('side'=>'left', 'expand'=>'yes') }.pack('side'=>'bottom', 'fill'=>'x', 'pady'=>'2m') -# frame 生成 -['開く', '保存'].each{|type| +# frame +['', '篆絖'].each{|type| TkFrame.new(base_frame) {|f| - TkLabel.new(f, 'text'=>"ファイルを#{type}: ", 'anchor'=>'e')\ + TkLabel.new(f, 'text'=>"<ゃ#{type}: ", 'anchor'=>'e')\ .pack('side'=>'left') TkEntry.new(f, 'width'=>20) {|e| @@ -61,7 +61,7 @@ TkFrame.new(base_frame) {|frame| $tk_strictMotif = TkVarAccess.new('tk_strictMotif') if ($tk_platform['platform'] == 'unix') TkCheckButton.new(base_frame, - 'text'=>'Motifスタイルのダイアログを用いる', + 'text'=>'Motif鴻帥ゃゃ≪違', 'variable'=>$tk_strictMotif, 'onvalue'=>1, 'offvalue'=>0 ).pack('anchor'=>'c') end @@ -83,7 +83,7 @@ def fileDialog(w,ent,operation) ['All files', '*' ] ] - if operation == '開く' + if operation == '' file = Tk.getOpenFile('filetypes'=>types, 'parent'=>w) else file = Tk.getSaveFile('filetypes'=>types, 'parent'=>w, |