Files
dcs-retribution/qt_ui/windows/mission/flight/settings/QCustomName.py
Dan Albert a47bef1f13 Blacken.
2021-02-12 20:10:45 -08:00

16 lines
463 B
Python

from PySide2.QtWidgets import QGroupBox, QHBoxLayout, QLabel
from gen.flights.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)