mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
20 lines
426 B
Python
20 lines
426 B
Python
from PySide2.QtCore import QObject, Signal
|
|
from game import Game
|
|
|
|
|
|
class GameUpdateSignal(QObject):
|
|
|
|
instance = None
|
|
gameupdated = Signal(Game)
|
|
|
|
def __init__(self):
|
|
super(GameUpdateSignal, self).__init__()
|
|
GameUpdateSignal.instance = self
|
|
|
|
def updateGame(self, game: Game):
|
|
self.gameupdated.emit(game)
|
|
|
|
@staticmethod
|
|
def get_instance():
|
|
return GameUpdateSignal.instance
|