@@ -224,6 +224,8 @@ def open_file() -> str:
224
224
with open (file_name , 'r' ) as f :
225
225
WINDOW ['-BODY-' ].update (value = f .read ())
226
226
WINDOW ['-FILE_INFO-' ].update (value = file_name )
227
+
228
+ WINDOW .set_title (file_name + ' - ' + APP_NAME )
227
229
return file_name
228
230
229
231
def save_file (file_name : str ):
@@ -437,11 +439,13 @@ def AboutNotepadPyPlus():
437
439
if EVENT in ('Character With Spaces' ,):
438
440
CHARS = character_count ()
439
441
if CHARS != 0 :
440
- ShowMessageBox (title = 'NotepadPy+ Statistics' , message = 'Characters With Spaces: {:,d}' .format (CHARS ))
442
+ ShowMessageBox (title = 'NotepadPy+ Statistics' ,
443
+ message = 'Characters With Spaces: {:,d}' .format (CHARS ))
441
444
if EVENT in ('Character Without Spaces' ,):
442
445
CHAR_WITHOUT_SPACES = characters_without_spaces ()
443
446
if CHAR_WITHOUT_SPACES != 0 :
444
- ShowMessageBox (title = 'NotepadPy+ Statistics' , message = 'Characters Without Spaces: {:,d}' .format (CHAR_WITHOUT_SPACES ))
447
+ ShowMessageBox (title = 'NotepadPy+ Statistics' ,
448
+ message = 'Characters Without Spaces: {:,d}' .format (CHAR_WITHOUT_SPACES ))
445
449
if EVENT in ('About' ,):
446
450
AboutNotepadPyPlus ()
447
451
@@ -481,5 +485,5 @@ def AboutNotepadPyPlus():
481
485
# file/text is saved.
482
486
try :
483
487
text_to_save = VALUES ['-BODY-' ]
484
- except :
488
+ except :# pylint: disable=bare-except
485
489
pass
0 commit comments