diff --git a/examples/qidle/qidle/main_window.py b/examples/qidle/qidle/main_window.py
index <HASH>..<HASH> 100644
--- a/examples/qidle/qidle/main_window.py
+++ b/examples/qidle/qidle/main_window.py
@@ -150,7 +150,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
         """
         editor = PyCodeEdit(self)
         self.setup_editor(editor)
-        self.tabWidget.add_code_edit(editor, 'New document')
+        self.tabWidget.add_code_edit(editor, 'New document.py')
         self.actionRun.setDisabled(True)
         self.actionConfigure_run.setDisabled(True)
QIdle: Use "New document.py" (so that mimetype and tab icon are properly detected)