mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
14 lines
408 B
Python
14 lines
408 B
Python
from typing import List
|
|
|
|
from PySide2.QtGui import QStandardItem
|
|
|
|
from gen.flights.flight import FlightWaypoint
|
|
|
|
|
|
class QWaypointItem(QStandardItem):
|
|
|
|
def __init__(self, point: FlightWaypoint):
|
|
super(QWaypointItem, self).__init__()
|
|
self.setText('{0: <16}'.format(point.description) + " -- [X: " + str(int(point.x)) + "; Y: " + str(int(point.y)) + "; Alt: " + str(int(point.alt)) + "m]")
|
|
|