Adjustments
This commit is contained in:
@@ -19,20 +19,17 @@ class MovieView(QWidget):
|
|||||||
contentlayout = QGridLayout()
|
contentlayout = QGridLayout()
|
||||||
|
|
||||||
# Create labels and buttons
|
# 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)
|
label1.setWordWrap(True)
|
||||||
label2 = QLabel(movie.description)
|
label2 = createImage(movie.image_path)
|
||||||
label2.setWordWrap(True)
|
|
||||||
label3 = createImage(movie.image_path)
|
|
||||||
|
|
||||||
button1 = QPushButton("Buy")
|
button1 = QPushButton("Buy")
|
||||||
button1.setMaximumWidth(100)
|
button1.setMaximumWidth(100)
|
||||||
|
|
||||||
contentlayout.addWidget(label1, 0, 0, alignment=Qt.AlignmentFlag.AlignTop | Qt.AlignmentFlag.AlignLeft)
|
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)
|
contentlayout.addWidget(button1, 1, 0, alignment=Qt.AlignmentFlag.AlignBottom | Qt.AlignmentFlag.AlignLeft)
|
||||||
|
|
||||||
bodylayout.addWidget(label3)
|
bodylayout.addWidget(label2)
|
||||||
bodylayout.addLayout(contentlayout)
|
bodylayout.addLayout(contentlayout)
|
||||||
|
|
||||||
self.setLayout(bodylayout)
|
self.setLayout(bodylayout)
|
||||||
|
|||||||
Reference in New Issue
Block a user