diff -r 5dec1604322c Lib/idlelib/GrepDialog.py --- a/Lib/idlelib/GrepDialog.py Wed Feb 26 18:26:49 2014 -0500 +++ b/Lib/idlelib/GrepDialog.py Wed Feb 26 20:52:30 2014 -0800 @@ -65,8 +65,9 @@ return from idlelib.OutputWindow import OutputWindow save = sys.stdout + fiftitle = "Python: Matches for '%r'" % (self.engine.getpat()) try: - sys.stdout = OutputWindow(self.flist) + sys.stdout = OutputWindow(self.flist, title=fiftitle) self.grep_it(prog, path) finally: sys.stdout = save diff -r 5dec1604322c Lib/idlelib/OutputWindow.py --- a/Lib/idlelib/OutputWindow.py Wed Feb 26 18:26:49 2014 -0500 +++ b/Lib/idlelib/OutputWindow.py Wed Feb 26 20:52:30 2014 -0800 @@ -12,7 +12,8 @@ This class has no input facilities. """ - def __init__(self, *args): + def __init__(self, *args, **kwargs): + self.title=kwargs.get('title', 'Output') EditorWindow.__init__(self, *args) self.text.bind("<>", self.goto_file_line) @@ -23,7 +24,7 @@ return 0 def short_title(self): - return "Output" + return self.title def maybesave(self): # Override base class method -- don't ask any questions