QIntValidator

class PyQt5.QtGui.QIntValidator

C++ documentation