@@ -3821,10 +3821,10 @@ def __init__(self, parent, ID, app_dir, settings, options):
3821
3821
if wx .Platform == "__WXMSW__" :
3822
3822
exeName = win32api .GetModuleFileName (win32api .GetModuleHandle (None ))
3823
3823
# 1.3.8.1 [mist13] Icon for Python version in Windows
3824
- if "easy_abc" in exeName :
3824
+ if "easy_abc" in exeName :
3825
3825
icon = wx .Icon (exeName + ";0" , wx .BITMAP_TYPE_ICO )
3826
3826
else :
3827
- icon = wx .Icon (os .path .join ('img' , 'logo.ico' ))
3827
+ icon = wx .Icon (os .path .join (application_path , 'img' , 'logo.ico' ))
3828
3828
self .SetIcon (icon )
3829
3829
global execmessages , visible_abc_code
3830
3830
self .settings = settings
@@ -6341,7 +6341,7 @@ def OnChangeFont(self, evt):
6341
6341
if font and font .IsOk ():
6342
6342
f = font
6343
6343
self .settings ['font' ] = (f .GetPointSize (), f .GetFamily (), f .GetStyle (), f .GetWeight (), f .GetUnderlined (), f .GetFaceName ())
6344
- self .OnSettingsChanged ( )
6344
+ self .InitEditor ( f . GetFaceName (), f . GetPointSize () )
6345
6345
6346
6346
def OnViewFieldReference (self , evt ):
6347
6347
if not self .field_reference_frame :
@@ -7746,10 +7746,10 @@ def InitEditor(self, font_face=None, font_size=None):
7746
7746
font = wantFonts .pop (0 )
7747
7747
if font in font_names :
7748
7748
break
7749
- self .editor .SetFont (wx .Font (size , wx .FONTFAMILY_DEFAULT , wx .FONTSTYLE_NORMAL , wx .FONTWEIGHT_NORMAL , faceName = font ))
7750
7749
else :
7751
7750
font = font_face
7752
7751
size = font_size
7752
+ self .editor .SetFont (wx .Font (size , wx .FONTFAMILY_DEFAULT , wx .FONTSTYLE_NORMAL , wx .FONTWEIGHT_NORMAL , faceName = font ))
7753
7753
7754
7754
self .editor .SetProperty ("fold" , "0" )
7755
7755
self .editor .StyleSetSpec (self .styler .STYLE_DEFAULT , "fore:#000000,face:%s,size:%d" % (font , size ))
0 commit comments