diff options
Diffstat (limited to 'ext/tk/sample/demos-jp/bind.rb')
-rw-r--r-- | ext/tk/sample/demos-jp/bind.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/tk/sample/demos-jp/bind.rb b/ext/tk/sample/demos-jp/bind.rb index 4f9235cfa6..3b6f6242c2 100644 --- a/ext/tk/sample/demos-jp/bind.rb +++ b/ext/tk/sample/demos-jp/bind.rb @@ -1,3 +1,4 @@ +# -*- coding: euc-jp -*- # # text (tag bindings) widget demo (called by 'widget') # @@ -40,11 +41,11 @@ def tag_binding_for_bind_demo(tag, enter_style, leave_style) end # text À¸À® -TkText.new($bind_demo){|t| +txt = TkText.new($bind_demo){|t| # À¸À® setgrid 'true' - width 60 - height 24 + #width 60 + #height 24 font $font wrap 'word' TkScrollbar.new($bind_demo) {|s| @@ -117,3 +118,6 @@ TkText.new($bind_demo){|t| TkTextMarkInsert.new(t, '0.0') configure('state','disabled') } + +txt.width 60 +txt.width 24 |