PyQt5最全70 布局之QHBoxLayout水平盒布局 import sys from PyQt5.QtWidgets import * class HBoxLayout(QWidget): """ 水平盒布局:QHBoxLayout """ def __init__(self): super(HBoxLayout