qgis-sample-QgsSpinBox.py

# coding: utf-8
from qgis.gui import QgsSpinBox

spin_box = QgsSpinBox()

spin_box.show()