summaryrefslogtreecommitdiff
path: root/ext/tk/sample/demos-jp/combo.rb
diff options
context:
space:
mode:
authorayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-14 17:25:37 +0000
committerayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-14 17:25:37 +0000
commit2fecb27eb47333fda1e0049584d6b56dd336197f (patch)
tree6a549de0a4c3980bb4c58b0de3055fd0b9756fbf /ext/tk/sample/demos-jp/combo.rb
parent9da539cce9e823ab78699a8784eacfe789e67f6d (diff)
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/combo.rb')
-rw-r--r--ext/tk/sample/demos-jp/combo.rb36
1 files changed, 18 insertions, 18 deletions
diff --git a/ext/tk/sample/demos-jp/combo.rb b/ext/tk/sample/demos-jp/combo.rb
index 2059662d48..8bbe36997d 100644
--- a/ext/tk/sample/demos-jp/combo.rb
+++ b/ext/tk/sample/demos-jp/combo.rb
@@ -1,4 +1,4 @@
-# -*- coding: euc-jp -*-
+# -*- coding: utf-8 -*-
#
# combo.rb --
#
@@ -21,16 +21,16 @@ base_frame = TkFrame.new($combo_demo).pack(:fill=>:both, :expand=>true)
Ttk::Label.new(base_frame, :font=>$font, :wraplength=>'5i', :justify=>:left,
:text=><<EOL).pack(:side=>:top, :fill=>:x)
-以下では3種類のコンボボックスが表示されています.\
-最初のものは,エントリウィジェットと同じ様に,\
-ポイントしたり,クリックしたり,タイプしたりすることができます.\
-また,Returnキーを入力すれば現在の値がリストに追加され,\
-ドロップダウンリストから選択することができるようになります.\
-↓(下向き矢印)キーを押して表示されたリストから\
-矢印キーで他の候補を選んでReturnキーを押せば,値を選択できます.\
-2番目のコンボボックスは特定の値に固定されており,一切変更できません.\
-3番目のものはオーストラリアの都市のドロップダウンリストから\
-選択することだけが可能となっています.
+篁ヤс3腮蕁潟潟鴻茵腓冴障鐚\
+鐚潟c吾с罕鐚\
+ゃ潟鐚鐚帥ゃс障鐚\
+障鐚Return若ュ亥憜ゃ鴻菴遵鐚\
+潟鴻御с障鐚\
+(筝√)若若茵腓冴鴻\
+√違若т茖吾Return若若逸ゃ御с障鐚\
+2潟潟鴻劫ゃ阪鐚筝紊眼с障鐚\
+3若鴻≪遵潟鴻\
+御純c障鐚
EOL
## variables
@@ -43,7 +43,7 @@ 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,
@@ -51,10 +51,10 @@ Ttk::Frame.new(base_frame) {|frame|
['secondVariable', secondValue],
['ozCity', ozCity])
}),
- Ttk::Button.new(frame, :text=>'コード参照',
+ Ttk::Button.new(frame, :text=>'潟若',
:image=>$image['view'], :compound=>:left,
:command=>proc{showCode 'combo'}),
- Ttk::Button.new(frame, :text=>'閉じる',
+ Ttk::Button.new(frame, :text=>'',
:image=>$image['delete'], :compound=>:left,
:command=>proc{
$combo_demo.destroy
@@ -68,13 +68,13 @@ Ttk::Frame.new(base_frame) {|frame|
frame = Ttk::Frame.new(base_frame).pack(:fill=>:both, :expand=>true)
australianCities = [
- 'キャンベラ', 'シドニー', 'メルボルン', 'パース', 'アデレード',
- 'ブリスベーン', 'ホバート', 'ダーウィン', 'アリス スプリングス'
+ 'c潟', '激', '<', '若', '≪若',
+ '鴻若', '若', '若c', '≪ 鴻潟違'
]
-secondValue.value = '変更不可'
-ozCity.value = 'シドニー'
+secondValue.value = '紊岩'
+ozCity.value = '激'
Tk.pack(Ttk::Labelframe.new(frame, :text=>'Fully Editable'){|f|
Ttk::Combobox.new(f, :textvariable=>firstValue){|b|