Adjustments

This commit is contained in:
2026-03-10 12:23:15 +11:00
parent 25cd36d417
commit 2a9a5df30d

View File

@@ -19,20 +19,17 @@ class MovieView(QWidget):
contentlayout = QGridLayout()
# Create labels and buttons
label1 = QLabel(f"Buying a ticket for {movie.name}\nFor cost ${movie.price}")
label1 = QLabel(f"Buying a ticket for {movie.name}\nFor cost ${movie.price}\n\n{movie.description}")
label1.setWordWrap(True)
label2 = QLabel(movie.description)
label2.setWordWrap(True)
label3 = createImage(movie.image_path)
label2 = createImage(movie.image_path)
button1 = QPushButton("Buy")
button1.setMaximumWidth(100)
contentlayout.addWidget(label1, 0, 0, alignment=Qt.AlignmentFlag.AlignTop | Qt.AlignmentFlag.AlignLeft)
contentlayout.addWidget(label2, 1, 0, alignment=Qt.AlignmentFlag.AlignTop | Qt.AlignmentFlag.AlignLeft)
contentlayout.addWidget(button1, 1, 0, alignment=Qt.AlignmentFlag.AlignBottom | Qt.AlignmentFlag.AlignLeft)
bodylayout.addWidget(label3)
bodylayout.addWidget(label2)
bodylayout.addLayout(contentlayout)
self.setLayout(bodylayout)