products_management_window.py 文件源码

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

项目:Enibar 作者: ENIB 项目源码 文件源码
def __init__(self, id_, name="", quantity=0):
        super().__init__()
        self.id_ = id_
        self.input = QtWidgets.QLineEdit()
        self.quantity_input = QtWidgets.QSpinBox()
        self.quantity_input.setRange(0, 9999)
        self.quantity_input.setValue(quantity)
        self.quantity_input.setSuffix(" mL")
        self.input.setText(name)
        self.button = QtWidgets.QPushButton("Supprimer")
        self.button.clicked.connect(self.remove)
        self.layout = QtWidgets.QHBoxLayout(self)
        self.layout.addWidget(self.input)
        self.layout.addWidget(self.quantity_input)
        self.layout.addWidget(self.button)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号