下拉菜单查找所有模块代码

a = findChildren(mainWindow(), text=“All Modules”)[0]
a.menu().setStyleSheet(“QMenu { menu-scrollable: 1; }”)