()
return [urwid.Text(('bold text', "CPU Detected"),
                           align="center"), cpu_name, urwid.Divider()]
Read and display processor name
Read and display processor name
Read and display processor name
def _generate_cpu_stats():
        """Read and display processor name """
        cpu_name = urwid.Text("CPU Name N/A", align="center")
        try:
            cpu_name = urwid.Text(get_processor_name().strip(), align="center")
        except OSError:
            logging.info("CPU name not available")
        return [urwid.Text(('bold text', "CPU Detected"),
                           align="center"), cpu_name, urwid.Divider()]
def _generate_cpu_stats ( ) : cpu_name = urwid . Text ( "CPU Name N/A" , align = "center" ) try : cpu_name = urwid . Text ( get_processor_name ( ) . strip ( ) , align = "center" ) except OSError : logging . info ( "CPU name not available" ) return [ urwid . Text ( ( 'bold text' , "CPU Detected" ) , align = "center" ) , cpu_name , urwid . Divider ( ) ]