def MenuBar(): app = _app() return [x for x in app.allWidgets() if x.__class__ is QtWidgets.QMenuBar][0]