class Tk::BWidget::NoteBook
Constants
- TkCommandNames
- WidgetClassName
Public Instance Methods
Source
# File lib/tkextlib/bwidget/notebook.rb, line 83 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
Source
# File lib/tkextlib/bwidget/notebook.rb, line 95 def compute_size tk_send('compute_size') self end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 100 def delete(page, destroyframe=None) tk_send('delete', tagid(page), destroyframe) self end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 105 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
Source
# File lib/tkextlib/bwidget/notebook.rb, line 138 def get_page(page) tk_send('pages', page) end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 117 def index(page) num_or_str(tk_send('index', tagid(page))) end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 121 def insert(index, page, keys={}, &b) win = window(tk_send('insert', index, tagid(page), *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
Source
# File lib/tkextlib/bwidget/notebook.rb, line 133 def move(page, index) tk_send('move', tagid(page), index) self end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 142 def pages(first=None, last=None) list(tk_send('pages', first, last)) end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 146 def raise(page=nil) if page tk_send('raise', page) self else tk_send('raise') end end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 155 def see(page) tk_send('see', page) self end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 50 def tabbind(context, *args, &block) #if args[0].kind_of?(Proc) || args[0].kind_of?(Method) if TkComm._callback_entry?(args[0]) || !block cmd = args.shift else cmd = block end _bind_for_event_class(Event_for_Tabs, [path, 'bindtabs'], context, cmd, *args) self end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 62 def tabbind_append(context, *args, &block) #if args[0].kind_of?(Proc) || args[0].kind_of?(Method) if TkComm._callback_entry?(args[0]) || !block cmd = args.shift else cmd = block end _bind_append_for_event_class(Event_for_Tabs, [path, 'bindtabs'], context, cmd, *args) self end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 74 def tabbind_remove(*args) _bind_remove_for_event_class(Event_for_Tabs, [path, 'bindtabs'], *args) self end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 79 def tabbindinfo(*args) _bindinfo_for_event_class(Event_for_Tabs, [path, 'bindtabs'], *args) end
Source
# File lib/tkextlib/bwidget/notebook.rb, line 38 def tagid(id) if id.kind_of?(TkWindow) #id.path id.epath elsif id.kind_of?(TkObject) id.to_eval else # id.to_s _get_eval_string(id) end end
Private Instance Methods
Source
# File lib/tkextlib/bwidget/notebook.rb, line 33 def __boolval_optkeys super() << 'homogeneous' end
Calls superclass method
TkConfigMethod#__boolval_optkeys