design.py 文件源码

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

项目:picasso 作者: jungmannlab 项目源码 文件源码
def __init__(self,  parent=None):
        super(SeqDialog,  self).__init__(parent)

        layout = QtGui.QVBoxLayout(self)

        self.table = QtGui.QTableWidget()
        self.table.setWindowTitle('Extension table')
        self.setWindowTitle('Extension table')
        self.resize(500,  285)
        self.table.setColumnCount(5)
        self.table.setHorizontalHeaderLabels(('Pos, Color, Preselection, Shortname, Sequence').split(', '))
        self.table.horizontalHeader().setStretchLastSection(True)
        self.table.resizeColumnsToContents()

        layout.addWidget(self.table)

        self.buttons = QDialogButtonBox(
            QDialogButtonBox.Ok | QDialogButtonBox.Cancel,
            Qt.Horizontal,  self)

        layout.addWidget(self.buttons)

        self.buttons.accepted.connect(self.accept)
        self.buttons.rejected.connect(self.reject)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号