# File tk/lib/tkextlib/bwidget/pagesmanager.rb, line 27
def add(page, &b)
win = window(tk_send('add', tagid(page)))
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/pagesmanager.rb, line 39
def compute_size
tk_send('compute_size')
self
end
# File tk/lib/tkextlib/bwidget/pagesmanager.rb, line 44
def delete(page)
tk_send('delete', tagid(page))
self
end
# File tk/lib/tkextlib/bwidget/pagesmanager.rb, line 49
def get_frame(page, &b)
win = window(tk_send('getframe', tagid(page)))
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/pagesmanager.rb, line 61
def get_page(page)
tk_send('pages', page)
end
# File tk/lib/tkextlib/bwidget/pagesmanager.rb, line 65
def pages(first=None, last=None)
list(tk_send('pages', first, last))
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.