MyWindow.py 文件源码

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

项目:PRESTO-GUI 作者: padmec-reservoir 项目源码 文件源码
def make_tab4(self, parent):
        tab4 = QWidget(parent)
        tab4.inpos = {}
        tab4.inwells = {}
        tab4.in_c = 1
        tab4.outpos = {}
        tab4.outwells = {}
        tab4.out_c = 1
        tab4.layout = QGridLayout(tab4)
        tab4.layout.setVerticalSpacing(20)
        tab4.layout.setAlignment(Qt.AlignTop | Qt.AlignCenter)
        tab4.add_inwell_but = QPushButton("New Injection Well", tab4)
        tab4.add_inwell_but.clicked.connect(self.make_inwell)
        tab4.add_outwell_but = QPushButton("New Producer Well", tab4)
        tab4.add_outwell_but.clicked.connect(self.make_outwell)
        tab4.layout.addWidget(tab4.add_inwell_but, 1, 1)
        tab4.layout.addWidget(tab4.add_outwell_but, 2, 1)
        return tab4
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号