# File tk/lib/tkextlib/bwidget/mainframe.rb, line 43
def add_indicator(keys={}, &b)
win = window(tk_send('addindicator', *hash_kv(keys)))
if b
if TkCore::WITH_RUBY_VM ### Ruby 1.9 !!!!
win.instance_exec(self, &b)
else
win.instance_eval(&b)
end
end
win
end
# File tk/lib/tkextlib/bwidget/mainframe.rb, line 55
def add_toolbar(&b)
win = window(tk_send('addtoolbar'))
if b
if TkCore::WITH_RUBY_VM ### Ruby 1.9 !!!!
win.instance_exec(self, &b)
else
win.instance_eval(&b)
end
end
win
end
# File tk/lib/tkextlib/bwidget/mainframe.rb, line 67
def get_frame(&b)
win = window(tk_send('getframe'))
if b
if TkCore::WITH_RUBY_VM ### Ruby 1.9 !!!!
win.instance_exec(self, &b)
else
win.instance_eval(&b)
end
end
win
end
# File tk/lib/tkextlib/bwidget/mainframe.rb, line 79
def get_indicator(idx, &b)
win = window(tk_send('getindicator', idx))
if b
if TkCore::WITH_RUBY_VM ### Ruby 1.9 !!!!
win.instance_exec(self, &b)
else
win.instance_eval(&b)
end
end
win
end
# File tk/lib/tkextlib/bwidget/mainframe.rb, line 103
def get_toolbar(idx, &b)
win = window(tk_send('gettoolbar', idx))
if b
if TkCore::WITH_RUBY_VM ### Ruby 1.9 !!!!
win.instance_exec(self, &b)
else
win.instance_eval(&b)
end
end
win
end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.