@@ -111,6 +111,7 @@ def CreateWidgets(self):
111
111
command = self .ShowIDLECredits )
112
112
idle_credits_b .pack (side = LEFT , padx = 10 , pady = 10 )
113
113
114
+ # License, et all, are of type _sitebuiltins._Printer
114
115
def ShowLicense (self ):
115
116
self .display_printer_text ('About - License' , license )
116
117
@@ -120,14 +121,16 @@ def ShowCopyright(self):
120
121
def ShowPythonCredits (self ):
121
122
self .display_printer_text ('About - Python Credits' , credits )
122
123
124
+ # Encode CREDITS.txt to utf-8 for proper version of Loewis.
125
+ # Specify others as ascii until need utf-8, so catch errors.
123
126
def ShowIDLECredits (self ):
124
- self .display_file_text ('About - Credits' , 'CREDITS.txt' , 'iso-8859-1 ' )
127
+ self .display_file_text ('About - Credits' , 'CREDITS.txt' , 'utf-8 ' )
125
128
126
129
def ShowIDLEAbout (self ):
127
- self .display_file_text ('About - Readme' , 'README.txt' )
130
+ self .display_file_text ('About - Readme' , 'README.txt' , 'ascii' )
128
131
129
132
def ShowIDLENEWS (self ):
130
- self .display_file_text ('About - NEWS' , 'NEWS.txt' )
133
+ self .display_file_text ('About - NEWS' , 'NEWS.txt' , 'ascii' )
131
134
132
135
def display_printer_text (self , title , printer ):
133
136
printer ._Printer__setup ()
0 commit comments