def __init__(self, id_, name, value):
super().__init__()
self.id_ = id_
self.name = name
self.value = value
self.win = None
self.label = QtWidgets.QLabel(name)
self.input = QtWidgets.QDoubleSpinBox()
self.input.setSuffix("€")
self.input.setMaximum(999.99)
self.input.setLocale(QtCore.QLocale('English'))
self.label.setBuddy(self.input)
self._build()
self.layout = QtWidgets.QHBoxLayout(self)
self.layout.addWidget(self.label)
self.layout.addWidget(self.input)
评论列表
文章目录