def __init__(self, msg, xPos, yPos):
     MessageWindow.__init__(self, MINI_WIND_SIZE)
     self.__isRounded = False
     self.__draw(msg, xPos, yPos)
     self.isFinishedVanishing = False
     self.isFinishedAppearing = False
     self.message = msg
     self._wind.setOpacity(0)
 def __init__( self, msg, xPos, yPos ):
     MessageWindow.__init__( self, MINI_WIND_SIZE )
     self.__isRounded = False
     self.__draw( msg, xPos, yPos )
     self.isFinishedVanishing = False
     self.isFinishedAppearing = False
     self.message = msg
     self._wind.setOpacity( 0 )
Ejemplo n.º 3
0
    def __init__(self, msgMan, eventManager):
        """
        Initializes the PrimaryMessage singleton
        """

        # Instantiate the underlying MessageWindow to the
        # maxsize suggested by the module constants.
        width = min(PRIM_MSG_WIDTH, graphics.getDesktopSize()[0] - 1)

        height = min(MAX_MSG_HEIGHT, graphics.getDesktopSize()[1] - 1)

        maxSize = (width, height)
        MessageWindow.__init__(self, maxSize)

        self.__evtManager = eventManager
        self.__msgManager = msgMan
        self.__msg = None
        self.__waiting = False
        self.__animating = False
Ejemplo n.º 4
0
    def __init__( self, msgMan, eventManager ):
        """
        Initializes the PrimaryMessage singleton
        """

        # Instantiate the underlying MessageWindow to the
        # maxsize suggested by the module constants.
        width = min( PRIM_MSG_WIDTH,
                     graphics.getDesktopSize()[0]-1 )

        height = min( MAX_MSG_HEIGHT,
                      graphics.getDesktopSize()[1]-1 )

        maxSize = ( width, height )
        MessageWindow.__init__( self, maxSize )

        self.__evtManager = eventManager
        self.__msgManager = msgMan
        self.__msg = None
        self.__waiting = False
        self.__animating = False