mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
It sounds like PySide2 will not be moving to Python 3.11, so we're stuck on 3.10 without this. Upgrading to a newer Qt also fixes some high DPI bugs (the file browser dialog for save/load is no longer tiny on 4k). https://github.com/pyinstaller/pyinstaller/issues/5414 previously blocked this, but the bug appears to be fixed now.
14 lines
374 B
Python
14 lines
374 B
Python
from typing import List
|
|
|
|
from PySide6.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)
|