naming, added separator
This commit is contained in:
5
mdi.py
5
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()
|
||||
|
Reference in New Issue
Block a user