class Tk::BWidget::MainFrame
Constants
- TkCommandNames
- WidgetClassName
Public Instance Methods
Source
# File 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
Source
# File 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
Source
# File 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
Source
# File 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
Source
# File 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
Source
# File lib/tkextlib/bwidget/mainframe.rb, line 124 def show_statusbar(name) tk_send('showstatusbar', name) self end
Source
# File lib/tkextlib/bwidget/mainframe.rb, line 129 def show_toolbar(idx, mode) tk_send('showtoolbar', idx, mode) self end
Private Instance Methods
Source
# File lib/tkextlib/bwidget/mainframe.rb, line 24 def __strval_optkeys super() << 'progressfg' end
Calls superclass method
TkConfigMethod#__strval_optkeys
Source
# File lib/tkextlib/bwidget/mainframe.rb, line 29 def __tkvariable_optkeys super() << 'progressvar' end
Calls superclass method
TkConfigMethod#__tkvariable_optkeys
Source
# File lib/tkextlib/bwidget/mainframe.rb, line 34 def __val2ruby_optkeys # { key=>proc, ... } # The method is used to convert a opt-value to a ruby's object. # When get the value of the option "key", "proc.call(value)" is called. { 'menu'=>proc{|v| simplelist(v).collect!{|elem| simplelist(v)}} } end