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)
评论列表
文章目录