15 lines
459 B
Python
15 lines
459 B
Python
from PyQt5.QtWidgets import QSpinBox
|
|
import logging
|
|
|
|
# 로거 인스턴스 가져오기
|
|
logger = logging.getLogger('default_logger')
|
|
class CustomSpinBox(QSpinBox):
|
|
def __init__(self, delta=1000, parent=None):
|
|
super(CustomSpinBox, self).__init__(parent)
|
|
self.delta = delta
|
|
self.setSingleStep(self.delta)
|
|
|
|
def textFromValue(self, value):
|
|
# 3자리 숫자마다 콤마를 찍는 로직
|
|
return "{:,}".format(value)
|