dcs_liberation/qt_ui/windows/weather/QWeatherInfoWindow.py
Dan Albert 75ea5cc462 Fix None dereferences in weather UI.
Also normalizes line endings.
2020-11-25 14:39:33 -08:00

16 lines
516 B
Python

from PySide2.QtWidgets import QDialog, QGridLayout, QLabel, QFrame, QSizePolicy
from game.game import Game
from game.weather import Conditions, TimeOfDay, Weather
import qt_ui.uiconstants as CONST
class QWeatherInfoWindow(QDialog):
def __init__(self, turn: int, conditions: Conditions):
super(QWeatherInfoWindow, self).__init__()
self.setModal(True)
self.setWindowTitle("Weather Forecast Report")
self.setWindowIcon(CONST.ICONS["Money"])
self.setMinimumSize(450, 200)