from PyQt5.QtCore import QSize, QRect
from PyQt5.QtGui import QBrush, QColor, QImage, QPixmap
from PyQt5.QtWidgets import QGraphicsScene, QGraphicsPixmapItem, QLabel

from ClickableLabel import ClickableQLabel


class MultiplayerScene(QGraphicsScene):
    def __init__(self,twoPlayersMethod,threePlayersMethod,fourPlayersMethod, backMethod, tournamentMethod, parent=None):
        super(MultiplayerScene, self).__init__(parent)

        screenWidth = 1370
        screenHeight = 730

        oImage = QPixmap("asteroids.jpg")
        sImage = oImage.scaled(QSize(screenWidth, screenHeight))  # resize Image to widgets size

        self.graphicsPixmapItem = QGraphicsPixmapItem(sImage)
        self.addItem(self.graphicsPixmapItem)
        self.setSceneRect(0, 0, screenWidth, screenHeight)

        twoPlayer = ClickableQLabel('2 PLAYER')
        threePlayer = ClickableQLabel('3 PLAYER')
        fourPlayer = ClickableQLabel('4 PLAYER')
        tournament = ClickableQLabel('TOURNAMENT')
        back = ClickableQLabel('BACK')

        twoPlayer.setStyleSheet("color: white; font-size: 40px; background-color: rgba(0,0,0,0%)")
        threePlayer.setStyleSheet("color: white; font-size: 40px; background-color: rgba(0,0,0,0%)")
        fourPlayer.setStyleSheet("color: white; font-size: 40px; background-color: rgba(0,0,0,0%)")
        tournament.setStyleSheet("color: white; font-size: 40px; background-color: rgba(0,0,0,0%)")
        back.setStyleSheet("color: white; font-size: 40px; background-color: rgba(0,0,0,0%)")

        self.y_start = 220
        self.y_step = 100
        self.x_pos = 550
        twoPlayer.setGeometry(QRect(self.x_pos, self.y_start, 300, 40))  # (x, y, width, height)
        threePlayer.setGeometry(QRect(self.x_pos, self.y_start + self.y_step, 300, 40))
        fourPlayer.setGeometry(QRect(self.x_pos, self.y_start + self.y_step * 2, 300, 40))
        tournament.setGeometry(QRect(self.x_pos, self.y_start + self.y_step * 3, 300, 40))
        back.setGeometry(QRect(100, 100, 300, 40))

        #connect
        back.connect(backMethod)
        twoPlayer.connect(twoPlayersMethod)
        threePlayer.connect(threePlayersMethod)
        fourPlayer.connect(fourPlayersMethod)
        tournament.connect(tournamentMethod)

        self.addWidget(twoPlayer)
        self.addWidget(threePlayer)
        self.addWidget(fourPlayer)
        self.addWidget(tournament)
        self.addWidget(back)
3b6807dae021dce3548732af8f228c3c13ba278b
<mask token>

<mask token>


class MultiplayerScene(QGraphicsScene):
    <mask token>

<mask token>


class MultiplayerScene(QGraphicsScene):

    def __init__(self, twoPlayersMethod, threePlayersMethod,
        fourPlayersMethod, backMethod, tournamentMethod, parent=None):
        super(MultiplayerScene, self).__init__(parent)
        screenWidth = 1370
        screenHeight = 730
        oImage = QPixmap('asteroids.jpg')
        sImage = oImage.scaled(QSize(screenWidth, screenHeight))
        self.graphicsPixmapItem = QGraphicsPixmapItem(sImage)
        self.addItem(self.graphicsPixmapItem)
        self.setSceneRect(0, 0, screenWidth, screenHeight)
        twoPlayer = ClickableQLabel('2 PLAYER')
        threePlayer = ClickableQLabel('3 PLAYER')
        fourPlayer = ClickableQLabel('4 PLAYER')
        tournament = ClickableQLabel('TOURNAMENT')
        back = ClickableQLabel('BACK')
        twoPlayer.setStyleSheet(
            'color: white; font-size: 40px; background-color: rgba(0,0,0,0%)')
        threePlayer.setStyleSheet(
            'color: white; font-size: 40px; background-color: rgba(0,0,0,0%)')
        fourPlayer.setStyleSheet(
            'color: white; font-size: 40px; background-color: rgba(0,0,0,0%)')
        tournament.setStyleSheet(
            'color: white; font-size: 40px; background-color: rgba(0,0,0,0%)')
        back.setStyleSheet(
            'color: white; font-size: 40px; background-color: rgba(0,0,0,0%)')
        self.y_start = 220
        self.y_step = 100
        self.x_pos = 550
        twoPlayer.setGeometry(QRect(self.x_pos, self.y_start, 300, 40))
        threePlayer.setGeometry(QRect(self.x_pos, self.y_start + self.
            y_step, 300, 40))
        fourPlayer.setGeometry(QRect(self.x_pos, self.y_start + self.y_step *
            2, 300, 40))
        tournament.setGeometry(QRect(self.x_pos, self.y_start + self.y_step *
            3, 300, 40))
        back.setGeometry(QRect(100, 100, 300, 40))
        back.connect(backMethod)
        twoPlayer.connect(twoPlayersMethod)
        threePlayer.connect(threePlayersMethod)
        fourPlayer.connect(fourPlayersMethod)
        tournament.connect(tournamentMethod)
        self.addWidget(twoPlayer)
        self.addWidget(threePlayer)
        self.addWidget(fourPlayer)
        self.addWidget(tournament)
        self.addWidget(back)

from PyQt5.QtCore import QSize, QRect
from PyQt5.QtGui import QBrush, QColor, QImage, QPixmap
from PyQt5.QtWidgets import QGraphicsScene, QGraphicsPixmapItem, QLabel
from ClickableLabel import ClickableQLabel


class MultiplayerScene(QGraphicsScene):

    def __init__(self, twoPlayersMethod, threePlayersMethod,
        fourPlayersMethod, backMethod, tournamentMethod, parent=None):
        super(MultiplayerScene, self).__init__(parent)
        screenWidth = 1370
        screenHeight = 730
        oImage = QPixmap('asteroids.jpg')
        sImage = oImage.scaled(QSize(screenWidth, screenHeight))
        self.graphicsPixmapItem = QGraphicsPixmapItem(sImage)
        self.addItem(self.graphicsPixmapItem)
        self.setSceneRect(0, 0, screenWidth, screenHeight)
        twoPlayer = ClickableQLabel('2 PLAYER')
        threePlayer = ClickableQLabel('3 PLAYER')
        fourPlayer = ClickableQLabel('4 PLAYER')
        tournament = ClickableQLabel('TOURNAMENT')
        back = ClickableQLabel('BACK')
        twoPlayer.setStyleSheet(
            'color: white; font-size: 40px; background-color: rgba(0,0,0,0%)')
        threePlayer.setStyleSheet(
            'color: white; font-size: 40px; background-color: rgba(0,0,0,0%)')
        fourPlayer.setStyleSheet(
            'color: white; font-size: 40px; background-color: rgba(0,0,0,0%)')
        tournament.setStyleSheet(
            'color: white; font-size: 40px; background-color: rgba(0,0,0,0%)')
        back.setStyleSheet(
            'color: white; font-size: 40px; background-color: rgba(0,0,0,0%)')
        self.y_start = 220
        self.y_step = 100
        self.x_pos = 550
        twoPlayer.setGeometry(QRect(self.x_pos, self.y_start, 300, 40))
        threePlayer.setGeometry(QRect(self.x_pos, self.y_start + self.
            y_step, 300, 40))
        fourPlayer.setGeometry(QRect(self.x_pos, self.y_start + self.y_step *
            2, 300, 40))
        tournament.setGeometry(QRect(self.x_pos, self.y_start + self.y_step *
            3, 300, 40))
        back.setGeometry(QRect(100, 100, 300, 40))
        back.connect(backMethod)
        twoPlayer.connect(twoPlayersMethod)
        threePlayer.connect(threePlayersMethod)
        fourPlayer.connect(fourPlayersMethod)
        tournament.connect(tournamentMethod)
        self.addWidget(twoPlayer)
        self.addWidget(threePlayer)
        self.addWidget(fourPlayer)
        self.addWidget(tournament)
        self.addWidget(back)

from PyQt5.QtCore import QSize, QRect
from PyQt5.QtGui import QBrush, QColor, QImage, QPixmap
from PyQt5.QtWidgets import QGraphicsScene, QGraphicsPixmapItem, QLabel

from ClickableLabel import ClickableQLabel


class MultiplayerScene(QGraphicsScene):
    def __init__(self,twoPlayersMethod,threePlayersMethod,fourPlayersMethod, backMethod, tournamentMethod, parent=None):
        super(MultiplayerScene, self).__init__(parent)

        screenWidth = 1370
        screenHeight = 730

        oImage = QPixmap("asteroids.jpg")
        sImage = oImage.scaled(QSize(screenWidth, screenHeight))  # resize Image to widgets size

        self.graphicsPixmapItem = QGraphicsPixmapItem(sImage)
        self.addItem(self.graphicsPixmapItem)
        self.setSceneRect(0, 0, screenWidth, screenHeight)

        twoPlayer = ClickableQLabel('2 PLAYER')
        threePlayer = ClickableQLabel('3 PLAYER')
        fourPlayer = ClickableQLabel('4 PLAYER')
        tournament = ClickableQLabel('TOURNAMENT')
        back = ClickableQLabel('BACK')

        twoPlayer.setStyleSheet("color: white; font-size: 40px; background-color: rgba(0,0,0,0%)")
        threePlayer.setStyleSheet("color: white; font-size: 40px; background-color: rgba(0,0,0,0%)")
        fourPlayer.setStyleSheet("color: white; font-size: 40px; background-color: rgba(0,0,0,0%)")
        tournament.setStyleSheet("color: white; font-size: 40px; background-color: rgba(0,0,0,0%)")
        back.setStyleSheet("color: white; font-size: 40px; background-color: rgba(0,0,0,0%)")

        self.y_start = 220
        self.y_step = 100
        self.x_pos = 550
        twoPlayer.setGeometry(QRect(self.x_pos, self.y_start, 300, 40))  # (x, y, width, height)
        threePlayer.setGeometry(QRect(self.x_pos, self.y_start + self.y_step, 300, 40))
        fourPlayer.setGeometry(QRect(self.x_pos, self.y_start + self.y_step * 2, 300, 40))
        tournament.setGeometry(QRect(self.x_pos, self.y_start + self.y_step * 3, 300, 40))
        back.setGeometry(QRect(100, 100, 300, 40))

        #connect
        back.connect(backMethod)
        twoPlayer.connect(twoPlayersMethod)
        threePlayer.connect(threePlayersMethod)
        fourPlayer.connect(fourPlayersMethod)
        tournament.connect(tournamentMethod)

        self.addWidget(twoPlayer)
        self.addWidget(threePlayer)
        self.addWidget(fourPlayer)
        self.addWidget(tournament)
        self.addWidget(back)