#NEWLINE# def font_to_str( font ) : #NEWLINE# #INDENT# ' Converts a wx.Font into a string description of itself.\n    ' #NEWLINE# weight = { #NEWLINE# #INDENT# wx . LIGHT : ' Light' , #NEWLINE# wx . BOLD : ' Bold' , #NEWLINE# #UNINDENT# } . get ( font . GetWeight ( ) , '' ) #NEWLINE# style = { #NEWLINE# #INDENT# wx . SLANT : ' Slant' , #NEWLINE# wx . ITALIC : ' Italic' , #NEWLINE# #UNINDENT# } . get ( font . GetStyle ( ) , '' ) #NEWLINE# underline = '' #NEWLINE# if font . GetUnderlined ( ) : #NEWLINE# #INDENT# underline = ' underline' #NEWLINE# #UNINDENT# return ( '%s point %s%s%s%s' % ( font . GetPointSize ( ) , font . GetFaceName ( ) , weight , weight , underline ) )