mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9b52ae2e64
commit
287a34ae0d
856 changed files with 13989 additions and 13989 deletions
|
@ -43,7 +43,7 @@ class Button_clone < TkLabel
|
|||
|
||||
def invoke
|
||||
if @command
|
||||
@command.call
|
||||
@command.call
|
||||
else
|
||||
''
|
||||
end
|
||||
|
@ -53,7 +53,7 @@ end
|
|||
TkLabel.new(:text=><<EOT).pack
|
||||
This is a sample of 'event binding'.
|
||||
The first button is a normal button widget.
|
||||
And the second one is a normal label widget
|
||||
And the second one is a normal label widget
|
||||
but with some bindings like a button widget.
|
||||
EOT
|
||||
|
||||
|
@ -66,7 +66,7 @@ TkFrame.new{|f|
|
|||
TkLabel.new(f, :textvariable=>v).pack(:side=>:left)
|
||||
}.pack
|
||||
|
||||
TkButton.new(:text=>'normal Button widget',
|
||||
TkButton.new(:text=>'normal Button widget',
|
||||
:command=>proc{
|
||||
puts 'button is clicked!!'
|
||||
lbl.text 'button is clicked!!'
|
||||
|
@ -75,7 +75,7 @@ TkButton.new(:text=>'normal Button widget',
|
|||
pack(:fill=>:x, :expand=>true)
|
||||
}
|
||||
|
||||
Button_clone.new(:text=>'Label with Button binding',
|
||||
Button_clone.new(:text=>'Label with Button binding',
|
||||
:command=>proc{
|
||||
puts 'label is clicked!!'
|
||||
lbl.text 'label is clicked!!'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue