4 def blank_bmp(w
, h
, color
="white"):
5 bmp
= wx
.EmptyBitmap(max(w
,1) , max(h
,1))
9 def clear_bmp(bmp
, color
):
12 dc
.SetBackground(wx
.Brush(color
))
17 #'US-ASCII', # (basic English)
18 #'ISO-8859-1', # (Western Europe)
19 #'ISO-8859-2', # (Central Europe)
20 #'ISO-8859-3', # (Southern Europe)
21 #'ISO-8859-4', # (Baltic)
22 #'ISO-8859-5', # (Cyrillic)
23 #'ISO-8859-6', # (Arabic)
24 #'ISO-8859-7', # (Greek)
25 #'ISO-8859-8', # (Hebrew)
26 #'ISO-8859-9', # (Turkish)
27 'ISO-8859-15', # (Latin 9)
28 #'Windows-1250', # (Central Europe)
29 #'Windows-1251', # (Cyrillic)
30 'Windows-1252', # (Western Europe)
31 #'Windows-1253', # (Greek)
32 #'Windows-1254', # (Turkish)
33 #'Windows-1255', # (Hebrew)
34 #'Windows-1256', # (Arabic)
35 #'Windows-1257', # (Baltic Rim)
36 #'Windows-1258', # (Vietnam)
37 #'SHIFT_JIS', # (Japanese, Win/Mac)
38 #'BIG5', # (Traditional Chinese)
39 #'GB18030', # (Simplified Chinese)
43 if isinstance(s
, unicode):
51 except UnicodeDecodeError: