mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/lib/tk/*: untabify
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
05f5928c9d
commit
3514110b89
296 changed files with 13591 additions and 13558 deletions
|
@ -17,8 +17,8 @@ $paned1_demo = TkToplevel.new {|w|
|
|||
}
|
||||
|
||||
TkLabel.new($paned1_demo,
|
||||
:font=>$font, :wraplength=>'4i', :justify=>:left,
|
||||
:text=><<EOL).pack(:side=>:top)
|
||||
:font=>$font, :wraplength=>'4i', :justify=>:left,
|
||||
:text=><<EOL).pack(:side=>:top)
|
||||
下の色付けされた二つのウィンドウの間の仕切り枠は、一つの領域をそれぞれのウィンドウのために分割するためのものです。左ボタンで仕切りを操作すると、分割サイズ変更の操作途中では再表示はなされず、確定させたときに表示が更新されます。マウスによる仕切りの操作に追随してサイズを変更した表示がなわれるようにしたい場合は、マウスの中央ボタンを使ってください。
|
||||
もしあなたが使っている Ruby にリンクされている Tk ライブラリが panedwindow を実装していない
|
||||
場合、このデモはうまく動かないはずです。その場合には panedwindow が実装されているような
|
||||
|
@ -31,13 +31,13 @@ TkFrame.new($paned1_demo){|f|
|
|||
pack(:side=>:bottom, :fill=>:x, :pady=>'2m')
|
||||
|
||||
TkButton.new(f, :text=>'閉じる', :width=>15, :command=>proc{
|
||||
$paned1_demo.destroy
|
||||
$paned1_demo = nil
|
||||
}).pack(:side=>:left, :expand=>true)
|
||||
$paned1_demo.destroy
|
||||
$paned1_demo = nil
|
||||
}).pack(:side=>:left, :expand=>true)
|
||||
|
||||
TkButton.new(f, :text=>'コード参照', :width=>15, :command=>proc{
|
||||
showCode 'paned1'
|
||||
}).pack(:side=>:left, :expand=>true)
|
||||
showCode 'paned1'
|
||||
}).pack(:side=>:left, :expand=>true)
|
||||
}
|
||||
|
||||
TkPanedwindow.new($paned1_demo){|f|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue