Method GTKSupport.MenuFactory.MenuFactory()
- Method MenuFactory
array
(object
) MenuFactory(MenuDef
...definition
)- Description
This is the function that actually builds the menubar.
- Example
import GTK1.MenuFactory; [GTK1.MenuBar bar, GTK1.AcceleratorTable map] = MenuFactory( MenuDef( "File/New", new_file, 0, "A-N" ), MenuDef( "File/Open", new_file, 1, "A-O" ), MenuDef( "File/Save", save_file, 0, "A-S" ), MenuDef( "File/<separator>", 0, 0 ), MenuDef( "File/Quit", _exit, 0, "A-Q" ), );
- Returns
Array GTK1.MenuBar
0
GTK1.MenuBar
GTK1.AcceleratorTable
1
GTK1.AcceleratorTable