a very old question
as the day of 2025
you can use findChildren(QWidget) with the objectName of qt_toolbox_toolboxbutton and setEnabled(False)