(self, layout)
Apply our layout
Apply our layout
Apply our layout
def create_layout(self, layout):
        """Apply our layout"""
        dbg('Setting layout')
        if 'command' in layout and layout['command'] != '':
            self.layout_command = layout['command']
        if 'profile' in layout and layout['profile'] != '':
            if layout['profile'] in self.config.list_profiles():
                self.set_profile(self, layout['profile'])
        if 'group' in layout and layout['group'] != '':
            # This doesn't need/use self.titlebar, but it's safer than sending
            # None
            self.really_create_group(self.titlebar, layout['group'])
        if 'title' in layout and layout['title'] != '':
            self.titlebar.set_custom_string(layout['title'])
        if 'directory' in layout and layout['directory'] != '':
            self.directory = layout['directory']
        if 'uuid' in layout and layout['uuid'] != '':
            self.uuid = make_uuid(layout['uuid'])
def create_layout ( self , layout ) : dbg ( 'Setting layout' ) if 'command' in layout and layout [ 'command' ] != '' : self . layout_command = layout [ 'command' ] if 'profile' in layout and layout [ 'profile' ] != '' : if layout [ 'profile' ] in self . config . list_profiles ( ) : self . set_profile ( self , layout [ 'profile' ] ) if 'group' in layout and layout [ 'group' ] != '' : # This doesn't need/use self.titlebar, but it's safer than sending # None self . really_create_group ( self . titlebar , layout [ 'group' ] ) if 'title' in layout and layout [ 'title' ] != '' : self . titlebar . set_custom_string ( layout [ 'title' ] ) if 'directory' in layout and layout [ 'directory' ] != '' : self . directory = layout [ 'directory' ] if 'uuid' in layout and layout [ 'uuid' ] != '' : self . uuid = make_uuid ( layout [ 'uuid' ] )