Method: Gui.menu

Defined in:
lib/gui.rb

menu to display and the root window menubar



84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/gui.rb', line 84

def self.menu
TkOption.add '*tearOff', 0
menu = TkMenu.new(root)
menu.add('command',
              'label'   => "Help",
              'command' => proc{help_win},
              'underline' => 3)
menu_bar = TkMenu.new
menu_bar.add('cascade',
             'menu' => menu,
             'label' => "Help")
root.menu(menu_bar)
end