qgis-sample-QgsMapUnitScaleDialog.py
from qgis.gui import QgsMapUnitScaleDialog
from qgis.utils import iface
map_unit_scale_dialog = QgsMapUnitScaleDialog()
print(map_unit_scale_dialog.getMapUnitScale())
print(map_unit_scale_dialog.getMapUnitScale().minScale)
print(map_unit_scale_dialog.getMapUnitScale().maxScale)
print(map_unit_scale_dialog.getMapUnitScale().minSizeMMEnabled)
print(map_unit_scale_dialog.getMapUnitScale().minSizeMM)
print(map_unit_scale_dialog.getMapUnitScale().maxSizeMMEnabled)
print(map_unit_scale_dialog.getMapUnitScale().maxSizeMM)
map_unit_scale_dialog.show()
map_unit_scale_dialog.setMapCanvas(iface.mapCanvas())
map_unit_scale_dialog.show()