From 36d2fbf6ecdd45ab7ed729d486dba3e44f459029 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Sun, 18 Dec 2022 15:09:07 +0100 Subject: [PATCH] naming, added separator --- mdi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mdi.py b/mdi.py index 097265b..0f5fb8f 100644 --- a/mdi.py +++ b/mdi.py @@ -18,7 +18,8 @@ class MDIArea(QMdiArea): def _add_menu(self, bar): menu = bar.addMenu("Windows") menu.addAction("Cascade") - menu.addAction("Tiled") + menu.addAction("Tile") + menu.addSeparator() menu.addAction("Close All") menu.triggered[QAction].connect(self.on_menu_select) @@ -27,7 +28,7 @@ class MDIArea(QMdiArea): txt = p.text() if txt == "Cascade": self.cascadeSubWindows() - elif txt == "Tiled": + elif txt == "Tile": self.tileSubWindows() elif txt == "Close All": self.closeAllSubWindows()