def __init__(self):
     mvc = NotificationMVC.g_instance
     mvc.initialize()
     settings = g_settings.lobby.serviceChannel
     self.__maxAvailableItemsCount = settings.stackLength
     self.__messageLivingTime = settings.lifeTime
     self.__animationSpeed = settings.alphaSpeed
     self.__messagesPadding = settings.padding
     self.__noDisplayingPopups = True
     self.__pendingMessagesQueue = []
     NotificationLayoutView.__init__(self, mvc.getModel())
     NotificationPopUpViewerMeta.__init__(self)
     self._model.onMessageReceived += self.__onMessageReceived
     self._model.onDisplayStateChanged += self.__displayStateChangeHandler
     mvc.getAlertController().onAllAlertsClosed += self.__allAlertsMessageCloseHandler
 def __init__(self):
     mvc = NotificationMVC.g_instance
     mvc.initialize()
     settings = g_settings.lobby.serviceChannel
     self.__maxAvailableItemsCount = settings.stackLength
     self.__messageLivingTime = settings.lifeTime
     self.__animationSpeed = settings.alphaSpeed
     self.__messagesPadding = settings.padding
     self.__noDisplayingPopups = True
     self.__pendingMessagesQueue = []
     NotificationLayoutView.__init__(self, mvc.getModel())
     NotificationPopUpViewerMeta.__init__(self)
     self._model.onMessageReceived += self.__onMessageReceived
     self._model.onDisplayStateChanged += self.__displayStateChangeHandler
     mvc.getAlertController(
     ).onAllAlertsClosed += self.__allAlertsMessageCloseHandler
Ejemplo n.º 3
0
 def __init__(self, ctx):
     View.__init__(self)
     NotificationLayoutView.__init__(self, ctx.get('model'))
     self._model.onMessageReceived += self.__onMessageReceived
     self.__closeCallBack = ctx.get('closeCallBack')
Ejemplo n.º 4
0
 def __init__(self, ctx):
     View.__init__(self)
     NotificationLayoutView.__init__(self, ctx.get('model'))
     self._model.onMessageReceived += self.__onMessageReceived
     self.__closeCallBack = ctx.get('closeCallBack')