(self)
return iface_params
Dict of interface parameters.
Dict of interface parameters.
Dict of interface parameters .
def iface_params(self):
        """Dict of interface parameters."""
        interface = self.get('interface')
        # categorical interfaces
        categories = {
            'text': ('ansi', 'curses'),
            'graphical': ('sdl2', 'pygame'),
        }
        if not interface:
            # default: try graphical first, then text, then cli
            iface_list = categories['graphical'] + categories['text'] + ('cli',)
        else:
            try:
                iface_list = categories[interface]
            except KeyError:
                iface_list = (interface,)
        iface_params = {
            'try_interfaces': iface_list,
            'audio_override': self.get('sound') != 'interface' and self.get('sound'),
        }
        iface_params.update(self._get_video_parameters())
        iface_params.update(self._get_audio_parameters())
        return iface_params
def iface_params ( self ) : interface = self . get ( 'interface' ) # categorical interfaces categories = { 'text' : ( 'ansi' , 'curses' ) , 'graphical' : ( 'sdl2' , 'pygame' ) , } if not interface : # default: try graphical first, then text, then cli iface_list = categories [ 'graphical' ] + categories [ 'text' ] + ( 'cli' , ) else : try : iface_list = categories [ interface ] except KeyError : iface_list = ( interface , ) iface_params = { 'try_interfaces' : iface_list , 'audio_override' : self . get ( 'sound' ) != 'interface' and self . get ( 'sound' ) , } iface_params . update ( self . _get_video_parameters ( ) ) iface_params . update ( self . _get_audio_parameters ( ) ) return iface_params