diff options
Diffstat (limited to 'ext/tk/sample')
-rw-r--r-- | ext/tk/sample/resource.en | 6 | ||||
-rw-r--r-- | ext/tk/sample/resource.ja | 6 | ||||
-rw-r--r-- | ext/tk/sample/tkoptdb.rb | 4 |
3 files changed, 9 insertions, 7 deletions
diff --git a/ext/tk/sample/resource.en b/ext/tk/sample/resource.en index 29bd587ea2..bfdc809278 100644 --- a/ext/tk/sample/resource.en +++ b/ext/tk/sample/resource.en @@ -1,6 +1,6 @@ -# -# see Tcl/Tk's "options" manual for "Database Name" and "Database Class" -# +! +! see Tcl/Tk's "options" manual for "Database Name" and "Database Class" +! *BtnFrame.borderWidth: 5 *BtnFrame.relief: ridge *BtnFrame.Button.background: wheat diff --git a/ext/tk/sample/resource.ja b/ext/tk/sample/resource.ja index 61098db4f8..8b715f36b0 100644 --- a/ext/tk/sample/resource.ja +++ b/ext/tk/sample/resource.ja @@ -1,6 +1,6 @@ -# -# see Tcl/Tk's "options" manual for "Database Name" and "Database Class" -# +! +! see Tcl/Tk's "options" manual for "Database Name" and "Database Class" +! *BtnFrame.borderWidth: 5 *BtnFrame.relief: ridge *BtnFrame.Button.background: wheat diff --git a/ext/tk/sample/tkoptdb.rb b/ext/tk/sample/tkoptdb.rb index 066bd9501a..6cb3d17993 100644 --- a/ext/tk/sample/tkoptdb.rb +++ b/ext/tk/sample/tkoptdb.rb @@ -10,7 +10,9 @@ require "tk" if ENV['LANG'] =~ /^ja/ # read Japanese resource - TkOptionDB.readfile(File.expand_path('resource.ja', File.dirname(__FILE__))) + TkOptionDB.read_with_encoding(File.expand_path('resource.ja', + File.dirname(__FILE__)), + 'euc-jp') else # read English resource TkOptionDB.readfile(File.expand_path('resource.en', File.dirname(__FILE__))) |