summaryrefslogtreecommitdiff
path: root/ext/tk/sample/demos-jp/ttkbut.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/sample/demos-jp/ttkbut.rb')
-rw-r--r--ext/tk/sample/demos-jp/ttkbut.rb56
1 files changed, 28 insertions, 28 deletions
diff --git a/ext/tk/sample/demos-jp/ttkbut.rb b/ext/tk/sample/demos-jp/ttkbut.rb
index 90ec3fce5b..ccde541019 100644
--- a/ext/tk/sample/demos-jp/ttkbut.rb
+++ b/ext/tk/sample/demos-jp/ttkbut.rb
@@ -1,4 +1,4 @@
-# -*- coding: euc-jp -*-
+# -*- coding: utf-8 -*-
#
# ttkbut.rb
#
@@ -23,22 +23,22 @@ base_frame = TkFrame.new($ttkbut_demo).pack(:fill=>:both, :expand=>true)
Ttk::Label.new(base_frame, :font=>$font, :wraplength=>'4i', :justify=>:left,
:text=><<EOL).pack(:side=>:top, :fill=>:x)
-Ttkとは,テーマ指定可能な新しいウィジェット集合です.\
-今,あなたが目にしているのはTtkのテーマ化ラベルで,\
-下にはTtkのラベルフレームの中に三つのグループのTtkウィジェットが\
-表示されています.
-最初のグループは全てボタンであり,\
-それぞれクリックすれば現在のアプリケーションのテーマが設定されます.
-2番目のグループは三つのチェックボタン集合です.\
-各集合の間には,セパレータウィジェットが置かれています.\
-なお「有効化」ボタンは,このトップレベルウィジェット内の\
-他のすべてのテーマ化ウィジェットの状態(state)が"disabled"かどうかを\
-コントロールすることに注意してください.
-3番目のグループは関連付けられたラジオボタン集合となっています.
+Ttk鐚若絎純違c吾сс鐚\
+篁鐚Ttk若э\
+筝Ttk若筝筝ゃ違若Ttkc吾с\
+茵腓冴障鐚
+違若帥潟с鐚\
+亥憜≪宴若激с潟若荐絎障鐚
+鐚違若筝ゃс帥渇с鐚\
+鐚祉若帥c吾с臀障鐚\
+劫帥潟鐚c吾с\
+篁鴻若c吾с倶(state)"disabled"\
+潟潟若羈鐚
+鐚違若∫d吾帥渇c障鐚
EOL
## Add buttons for setting the theme
-buttons = Ttk::Labelframe.new(base_frame, :text=>'ボタン')
+buttons = Ttk::Labelframe.new(base_frame, :text=>'帥')
# Ttk::Style.theme_names.each{|theme|
# Ttk::Button.new(buttons, :text=>theme,
# :command=>proc{Ttk::Style.theme_use theme}).pack(:pady=>2)
@@ -66,9 +66,9 @@ def setState(root, value, *excepts)
end
## Set up the checkbutton group
-checks = Ttk::Labelframe.new(base_frame, :text=>'チェックボタン')
+checks = Ttk::Labelframe.new(base_frame, :text=>'с帥')
enabled = TkVariable.new(true)
-e = Ttk::Checkbutton.new(checks, :text=>'有効化', :variable=>enabled,
+e = Ttk::Checkbutton.new(checks, :text=>'劫', :variable=>enabled,
:command=>proc{
setState($ttkbut_demo,
((enabled.bool)? "!disabled" : "disabled"),
@@ -84,15 +84,15 @@ tomato = TkVariable.new
basil = TkVariable.new
oregano = TkVariable.new
-c1 = Ttk::Checkbutton.new(checks, :text=>'チーズ', :variable=>cheese)
-c2 = Ttk::Checkbutton.new(checks, :text=>'トマト', :variable=>tomato)
-c3 = Ttk::Checkbutton.new(checks, :text=>'バジル', :variable=>basil)
-c4 = Ttk::Checkbutton.new(checks, :text=>'オレガノ', :variable=>oregano)
+c1 = Ttk::Checkbutton.new(checks, :text=>'若', :variable=>cheese)
+c2 = Ttk::Checkbutton.new(checks, :text=>'', :variable=>tomato)
+c3 = Ttk::Checkbutton.new(checks, :text=>'吾', :variable=>basil)
+c4 = Ttk::Checkbutton.new(checks, :text=>'', :variable=>oregano)
Tk.pack(e, sep1, c1, c2, sep2, c3, c4, :fill=>:x, :pady=>2)
## Set up the radiobutton group
-radios = Ttk::Labelframe.new(base_frame, :text=>'ラジオボタン')
+radios = Ttk::Labelframe.new(base_frame, :text=>'吾帥')
happyness = TkVariable.new
@@ -114,18 +114,18 @@ Ttk::Frame.new(base_frame) {|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{
- showVars(base_frame, ['有効化', enabled],
- ['チーズ', cheese], ['トマト', tomato],
- ['バジル', basil], ['オレガノ', oregano],
- ['幸福度', happyness])
+ showVars(base_frame, ['劫', enabled],
+ ['若', cheese], ['', tomato],
+ ['吾', basil], ['', oregano],
+ ['綛悟鎺', happyness])
}),
- Ttk::Button.new(frame, :text=>'コード参照',
+ Ttk::Button.new(frame, :text=>'潟若',
:image=>$image['view'], :compound=>:left,
:command=>proc{showCode 'ttkbut'}),
- Ttk::Button.new(frame, :text=>'閉じる',
+ Ttk::Button.new(frame, :text=>'',
:image=>$image['delete'], :compound=>:left,
:command=>proc{
tmppath = $ttkbut_demo