Convert from font string/tyuple into a Qt style sheet string
    :param font: "Arial 10 Bold" or ('Arial', 10, 'Bold)
    :return: style string that can be combined with other style strings

def font_to_wx_font(font):
    """
    Convert from font string/tyuple into a Qt style sheet string
    :param font: "Arial 10 Bold" or ('Arial', 10, 'Bold)
    :return: style string that can be combined with other style strings
    """

    if font is None:
        return ''

    if type(font) is str:
        _font = font.split(' ')
    else:
        _font = font
    name = _font[0]
    family = _font[0]
    point_size = int(_font[1])

    # style = _font[2]

    underline =  'underline' in _font[2:]
    bold =  'bold' in _font

    wxfont = wx.Font(point_size,
                     wx.FONTFAMILY_DEFAULT,
                     wx.FONTSTYLE_NORMAL,
                     wx.FONTWEIGHT_BOLD if bold else wx.FONTWEIGHT_NORMAL,
                     underline,
                     faceName=family)

    return wxfont