Fixed font discrepancy from different wxPython versions.
This commit is contained in:
committed by
Gleb Golubitsky
parent
b4f4024903
commit
a603a4359a
15
gui/utils/fonts.py
Normal file
15
gui/utils/fonts.py
Normal file
@@ -0,0 +1,15 @@
|
||||
'''
|
||||
Font file to handle the differences in font calculations between
|
||||
different wxPython versions
|
||||
'''
|
||||
|
||||
import wx
|
||||
|
||||
if 'wxMSW' in wx.PlatformInfo and wx.VERSION < (2,9):
|
||||
SMALL = (0,12)
|
||||
NORMAL = (0,14)
|
||||
BIG = (0,15)
|
||||
else:
|
||||
SMALL = (0,10)
|
||||
NORMAL = (0,11)
|
||||
BIG = (0,12)
|
||||
Reference in New Issue
Block a user