diff options
Diffstat (limited to 'ext/tk/sample/demos-jp/ttknote.rb')
-rw-r--r-- | ext/tk/sample/demos-jp/ttknote.rb | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/ext/tk/sample/demos-jp/ttknote.rb b/ext/tk/sample/demos-jp/ttknote.rb index f0cd258893..f3b2fa5881 100644 --- a/ext/tk/sample/demos-jp/ttknote.rb +++ b/ext/tk/sample/demos-jp/ttknote.rb @@ -1,4 +1,4 @@ -# -*- coding: euc-jp -*- +# -*- coding: utf-8 -*- # # ttknote.rb -- # @@ -23,10 +23,10 @@ Ttk::Frame.new($ttknote_demo) {|frame| sep = Ttk::Separator.new(frame) Tk.grid(sep, :columnspan=>4, :row=>0, :sticky=>'ew', :pady=>2) TkGrid('x', - Ttk::Button.new(frame, :text=>'コード参照', + Ttk::Button.new(frame, :text=>'潟若', :image=>$image['view'], :compound=>:left, :command=>proc{showCode 'ttknote'}), - Ttk::Button.new(frame, :text=>'閉じる', + Ttk::Button.new(frame, :text=>'', :image=>$image['delete'], :compound=>:left, :command=>proc{ $ttknote_demo.destroy @@ -48,31 +48,31 @@ notebook.enable_traversal f_msg = Ttk::Frame.new(notebook) msg_m = Ttk::Label.new(f_msg, :font=>$font, :wraplength=>'5i', :justify=>:left, :anchor=>'n', :text=><<EOL) -Ttkとは,テーマ指定可能な新しいウィジェット集合です.\ -その中に含まれるウィジェットのひとつにノートブックウィジェットがあります.\ -ノートブックウィジェットは,\ -個別の内容を持ったパネルからの選択を可能にするような\ -タブの集合(タブセット)を定めます.\ -タブセットは最近の多くのユーザインターフェースで見られる機能です.\ -タブの選択は,マウスによるだけでなく,\ -ノートブックウィジェットのページの見出しが選択されている時であれば\ -Ctrl+Tabキーの入力によっても行うことができます.\ -このデモでは,見出しで下線付きの文字のキーとAltキーとを組み合わせることで\ -ページを選択することができるようにも設定しています.\ -ただし,2番目のタブは無効化されて選択できないようになっていることには\ -注意してください. +Ttk鐚若絎純違c吾сс鐚\ +筝障c吾с蚊ゃ若c吾с障鐚\ +若c吾с鐚\ +ャ絎鴻c御純\ +帥鐚帥祉鐚絎障鐚\ +帥祉菴紊若吟ゃ潟帥若с若鴻ц罘純с鐚\ +帥御鐚鴻с鐚\ +若c吾с若吾荀冴御с\ +Ctrl+Tab若ュc茵с障鐚\ +≪с鐚荀冴т膩篁絖若Alt若腟水\ +若吾御с荐絎障鐚\ +鐚鐚帥≦劫御сc\ +羈鐚 EOL neat = TkVariable.new after_id = nil -msg_b = Ttk::Button.new(f_msg, :text=>'すてきだ!(Neat!)', :underline=>6, +msg_b = Ttk::Button.new(f_msg, :text=>'鐚(Neat!)', :underline=>6, :command=>proc{ - neat.value = 'あぁ,そのとおりさ...' + neat.value = '鐚鐚鐚鐚' Tk.after_cancel(after_id) if after_id after_id = Tk.after(500){neat.value = ''} }) msg_b.winfo_toplevel.bind('Alt-n'){ msg_b.focus; msg_b.invoke } msg_l = Ttk::Label.new(f_msg, :textvariable=>neat) -notebook.add(f_msg, :text=>'説明(Description)', :underline=>3, :padding=>2) +notebook.add(f_msg, :text=>'茯(Description)', :underline=>3, :padding=>2) Tk.grid(msg_m, '-', :sticky=>'new', :pady=>2) Tk.grid(msg_b, msg_l, :pady=>[2, 4], :padx=>20) msg_b.grid_configure(:sticky=>'e') @@ -82,11 +82,11 @@ f_msg.grid_columnconfigure([0, 1], :weight=>1, :uniform=>1) ## Populate the second pane. Note that the content doesn't really matter f_disabled = Ttk::Frame.new(notebook) -notebook.add(f_disabled, :text=>'無効化されたタブ', :state=>:disabled) +notebook.add(f_disabled, :text=>'≦劫帥', :state=>:disabled) ## Popuplate the third pane f_editor = Ttk::Frame.new(notebook) -notebook.add(f_editor, :text=>'テキストエディタ(Text Editor)', :underline=>9) +notebook.add(f_editor, :text=>'鴻c(Text Editor)', :underline=>9) editor_t = Tk::Text.new(f_editor, :width=>40, :height=>10, :wrap=>:char) if Tk.windowingsystem != 'aqua' editor_s = editor_t.yscrollbar(Ttk::Scrollbar.new(f_editor)) |