Untitled
Anonymous
plain_text
02/25/2026 2:34 PM
744 B
13
Indexable
#Left, Middle, Right
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QRadioButton, QVBoxLayout, QHBoxLayout, QGroupBox, QPushButton
app = QApplication([])
window = QWidget()
window.setWindowTitle('Left, Middle, Right')
window.resize(400, 200)
btn1 = QPushButton('Left')
btn2 = QPushButton('Middle')
btn3 = QPushButton('Right')
v_main = QVBoxLayout()
hl_1 = QHBoxLayout()
hl_1.addWidget(btn1)
hl_1.addWidget(btn2)
hl_1.addWidget(btn3)
v_main.addLayout(hl_1)
window.setLayout(v_main)
window.show()
app.exec_()Editor is loading...
Leave a Comment