📜  如何在菜单栏中添加分隔符 pyqt5 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:31.799000             🧑  作者: Mango

代码示例1
# Works both for PyQt5.QtWidgets QMenu and QMenuBar
menu = QMenu()
first_action = menu.addAction("First")
menu.addSeparator()
second_action = menu.addAction("Second")