Raffson a736bf9b09
"Optimize Imports" in game & qt-ui
Adjustments made by PyCharm
2022-10-24 18:54:41 +02:00

12 lines
349 B
Python

from PySide2.QtGui import QStandardItem
from game.ato.flightwaypoint import FlightWaypoint
class QWaypointItem(QStandardItem):
def __init__(self, point: FlightWaypoint, number):
super(QWaypointItem, self).__init__()
self.number = number
self.setText("{:<16}".format(point.pretty_name))
self.setEditable(False)