def initDefaultFonts(self):
"""Initialize default fonts.
"""
fontEnum = wx.FontEnumerator()
fontEnum.EnumerateFacenames()
faceList = fontEnum.GetFacenames()
if 'Utopia' in faceList:
self.defaultStimFont = wx.Font(pointSize=50, family=wx.FONTFAMILY_ROMAN,
style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_NORMAL,
#underline=False, faceName='Utopia') # wxpython3
underline=False, face='Utopia')
#self.defaultFeedFont = wx.Font(pointSize=36, family=wx.FONTFAMILY_ROMAN,
# style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_NORMAL,
# underline=True, faceName='Utopia')
else:
self.defaultStimFont = wx.Font(pointSize=50, family=wx.FONTFAMILY_ROMAN,
style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_NORMAL, underline=False)
#self.defaultFeedFont = wx.Font(pointSize=32, family=wx.FONTFAMILY_ROMAN,
# style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_NORMAL, underline=True)
self.defaultFeedFont = wx.Font(pointSize=32, family=wx.FONTFAMILY_MODERN,
style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_NORMAL, underline=False)
评论列表
文章目录