54 |
'cp1250': wxFONTENCODING_CP1250, |
'cp1250': wxFONTENCODING_CP1250, |
55 |
'cp1251': wxFONTENCODING_CP1251, |
'cp1251': wxFONTENCODING_CP1251, |
56 |
'cp1252': wxFONTENCODING_CP1252, |
'cp1252': wxFONTENCODING_CP1252, |
|
'big5': wxFONTENCODING_BIG5, |
|
|
'gb2312': wxFONTENCODING_GB2312 |
|
57 |
} |
} |
58 |
|
|
59 |
|
# adding encodings just found in newer wxwindows versions |
60 |
|
try: |
61 |
|
encodings.update({ |
62 |
|
# 'utf-8': wxFONTENCODING_UTF8, |
63 |
|
'big5': wxFONTENCODING_BIG5, |
64 |
|
'gb2312': wxFONTENCODING_GB2312 |
65 |
|
}) |
66 |
|
except NameError: |
67 |
|
pass |
68 |
|
|
69 |
|
|
70 |
# hack for wxPython 2.2 (2.3+ doesn't need this) |
# hack for wxPython 2.2 (2.3+ doesn't need this) |
71 |
def _eventObjTowxWindow(event): |
def _eventObjTowxWindow(event): |