PyQt5 网格布局 2 (14)
发布时间
阅读量:
阅读量
研读《PyQt4入门指南 PDF中文版.pdf》过程中形成的记录与心得

在网格布局结构中,部件具备跨越多个行或列的特性。以下示例将对这一情形进行具体展示。
<span style="font-size:14px;">#!/usr/bin/python
# gridlayout2.py
from PyQt5.QtWidgets import QApplication, QLineEdit, QLabel, QGridLayout
from PyQt5 import QtWidgets
class GridLayout(QtWidgets.QWidget):
def __init__(self, parent= None):
QtWidgets.QWidget.__init__(self)
self.setWindowTitle('grid layout')
title = QLabel('Titl
全部评论 (0)
还没有任何评论哟~
