def wxFont_from_Font(font):
    """ Convert the given Enaml Font into a wxFont.

    Parameters
    ----------
    font : Font
        The Enaml Font object.

    Returns
    -------
    result : wxFont
        The wxFont instance for the given Enaml font.

    """
    wxstyle = FONT_STYLE[font.style]
    if 50 < font.weight:
        wxweight = wx.FONTWEIGHT_LIGHT
    elif font.weight >= 75:
        wxweight = wx.FONTWEIGHT_BOLD
    else:
        wxweight = wx.FONTWEIGHT_NORMAL
    wxfamily = wx.FONTFAMILY_DEFAULT
    wxfont = wx.Font(font.pointsize, wxfamily, wxstyle, wxweight)
    wxfont.SetFaceName(font.family)
    return wxfont
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/wx/wx_resource_helpers.py/wxFont_from_Font/swapped operands of `<`