def activated(self):
        filename = self.window.central_pane.editor.path
        self.window.title = filename if filename else 'Untitled'
Overriden to set the window's title.
dataset/ETHPy150Open enthought/pyface/examples/tasks/basic/example_task.py/ExampleTask.activated