Class: Tk::BWidget::MainFrame (Ruby 2.3.4)

In Files

  • tk/lib/tkextlib/bwidget/mainframe.rb

Class/Module Index [+]

Quicksearch

Tk::BWidget::MainFrame

Public Instance Methods

add_indicator(keys={}, &b)
 
               # 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
            
add_toolbar(&b)
 
               # 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
            
get_frame(&b)
 
               # 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
            
get_indicator(idx, &b)
 
               # 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
            
get_menu(menu_id, &b)
 
               # File tk/lib/tkextlib/bwidget/mainframe.rb, line 91
def get_menu(menu_id, &b)
  win = window(tk_send('getmenu', menu_id))
  if b
    if TkCore::WITH_RUBY_VM  ### Ruby 1.9 !!!!
      win.instance_exec(self, &b)
    else
      win.instance_eval(&b)
    end
  end
  win
end
            
get_menustate(tag)
 
               # File tk/lib/tkextlib/bwidget/mainframe.rb, line 115
def get_menustate(tag)
  tk_send('getmenustate', tag) # return state name string
end
            
get_toolbar(idx, &b)
 
               # 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
            
set_menustate(tag, state)
 
               # File tk/lib/tkextlib/bwidget/mainframe.rb, line 119
def set_menustate(tag, state)
  tk_send('setmenustate', tag, state)
  self
end
            
show_statusbar(name)
 
               # File tk/lib/tkextlib/bwidget/mainframe.rb, line 124
def show_statusbar(name)
  tk_send('showstatusbar', name)
  self
end
            
show_toolbar(idx, mode)
 
               # File tk/lib/tkextlib/bwidget/mainframe.rb, line 129
def show_toolbar(idx, mode)
  tk_send('showtoolbar', idx, mode)
  self
end