diskeditwidget.py 文件源码

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

项目:lilii 作者: LimeLinux 项目源码 文件源码
def __init__(self, parent):
        super().__init__()
        self.parent = parent
        self.setFixedSize(300, 150)
        self.setLayout(QVBoxLayout())

        hlayout = QHBoxLayout()
        self.layout().addLayout(hlayout)

        label = QLabel()
        label.setText(self.tr("Mount Point:"))
        hlayout.addWidget(label)

        self.combobox = QComboBox()
        hlayout.addWidget(self.combobox)

        self.dialbutton = QDialogButtonBox()
        self.dialbutton.setStandardButtons(QDialogButtonBox.Ok|QDialogButtonBox.Cancel)
        self.layout().addWidget(self.dialbutton)

        self.dialbutton.button(QDialogButtonBox.Ok).setText(self.tr("Ok"))
        self.dialbutton.button(QDialogButtonBox.Cancel).setText(self.tr("Cancel"))

        self.dialbutton.accepted.connect(self.editAccept)
        self.dialbutton.rejected.connect(self.close)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号