#NEWLINE# def setupWindowMenu( app ) : #NEWLINE# #INDENT# windowMenu = NSMenu . alloc ( ) . initWithTitle_ ( 'Window' ) #NEWLINE# windowMenu . retain ( ) #NEWLINE# menuItem = NSMenuItem . alloc ( ) . initWithTitle_action_keyEquivalent_ ( 'Minimize' , 'performMiniaturize:' , 'm' ) #NEWLINE# windowMenu . addItem_ ( menuItem ) #NEWLINE# windowMenuItem = NSMenuItem . alloc ( ) . initWithTitle_action_keyEquivalent_ ( 'Window' , None , '' ) #NEWLINE# windowMenuItem . setSubmenu_ ( windowMenu ) #NEWLINE# app . mainMenu ( ) . addItem_ ( windowMenuItem ) #NEWLINE# app . setWindowsMenu_ ( windowMenu )