mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
16 lines
451 B
Python
16 lines
451 B
Python
"""Spin box for selecting the number of aircraft in a flight."""
|
|
|
|
from PySide6.QtWidgets import QSpinBox
|
|
|
|
|
|
class QFlightSizeSpinner(QSpinBox):
|
|
"""Spin box for selecting the number of aircraft in a flight."""
|
|
|
|
def __init__(
|
|
self, min_size: int = 1, max_size: int = 4, default_size: int = 2
|
|
) -> None:
|
|
super().__init__()
|
|
self.setMinimum(min_size)
|
|
self.setMaximum(max_size)
|
|
self.setValue(default_size)
|