From a6eef02195865a34e5d401ac6cc7245fc434b11f Mon Sep 17 00:00:00 2001 From: 15527988939 Date: Sun, 20 Feb 2022 11:07:34 +0800 Subject: [PATCH] exitAction -> exitAct --- translated/pyqt6/menustoolbars.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translated/pyqt6/menustoolbars.md b/translated/pyqt6/menustoolbars.md index 7c2d43a..902c5e9 100644 --- a/translated/pyqt6/menustoolbars.md +++ b/translated/pyqt6/menustoolbars.md @@ -129,7 +129,7 @@ exitAct.triggered.connect(QApplication.instance().quit) ``` python menubar = self.menuBar() fileMenu = menubar.addMenu('&File') -fileMenu.addAction(exitAction) +fileMenu.addAction(exitAct) ``` `menuBar` 方法创建了一个菜单栏,然后使用 `addMenu` 创建一个文件菜单,使用 `addAction` 创建一个行为。