mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
PySide2 renamed to PySide6 for Qt 6 support. It doesn't seem like PySide2 is getting a 3.10 wheel, so upgrade to Qt 6 to prep for that.
16 lines
460 B
Python
16 lines
460 B
Python
from PySide6.QtWidgets import QGroupBox, QHBoxLayout, QLabel
|
|
|
|
from game.ato.flight import Flight
|
|
|
|
|
|
class QFlightCustomName(QGroupBox):
|
|
def __init__(self, flight: Flight):
|
|
super(QFlightCustomName, self).__init__()
|
|
|
|
self.flight = flight
|
|
|
|
self.layout = QHBoxLayout()
|
|
self.custom_name_label = QLabel(f"Custom Name: {flight.custom_name}")
|
|
self.layout.addWidget(self.custom_name_label)
|
|
self.setLayout(self.layout)
|