from qtpy.QtCore import Qt
from qtpy.QtWidgets import QSpinBox


class MySpinBox(QSpinBox):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.setRange(-100000, 100000)
        self.setAlignment(Qt.AlignRight)
from qtpy.QtCore import Qt
from qtpy.QtWidgets import QSpinBox


class MySpinBox(QSpinBox):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.setRange(-100000, 100000)
        self.setAlignment(Qt.AlignRight)