(self, menu)
Add the layout list to the menu
Add the layout list to the menu
Add the layout list to the menu
def add_layout_launcher(self, menu):
        """Add the layout list to the menu"""
        item = Gtk.MenuItem.new_with_mnemonic(_('_Layouts...'))
        menu.append(item)
        submenu = Gtk.Menu()
        item.set_submenu(submenu)
        layouts = self.config.list_layouts()
        for layout in layouts:
                item = Gtk.MenuItem(layout)
                item.connect('activate', lambda x: spawn_new_terminator(self.terminator.origcwd, ['-u', '-l', layout]))
                submenu.append(item)
def add_layout_launcher ( self , menu ) : item = Gtk . MenuItem . new_with_mnemonic ( _ ( '_Layouts...' ) ) menu . append ( item ) submenu = Gtk . Menu ( ) item . set_submenu ( submenu ) layouts = self . config . list_layouts ( ) for layout in layouts : item = Gtk . MenuItem ( layout ) item . connect ( 'activate' , lambda x : spawn_new_terminator ( self . terminator . origcwd , [ '-u' , '-l' , layout ] ) ) submenu . append ( item )