products_management_window.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:Enibar 作者: ENIB 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号