QtWidgets import QPushButton btn = QPushButton("button1") # create it # now you can add it to your layout layout = QHBoxLayout() # from PyQt5.
確定! 回上一頁