from PyQt5.QtWidgets import QPushButton


class TargetButton(QPushButton):

    def __init__(self, *__args):
        super().__init__(*__args)
        self.x = None
        self.y = None
        self.size = 15
        self._init_view()

    def _init_view(self):
        self.setStyleSheet("background: white;" 
                           "border-radius: {radius};" 
                           "color: black".format(radius=self.size / 2))
        self.setGeometry(0, 0, self.size, self.size)
        self.setText("x")

    def setup_frame(self, frame):
        self.x = frame[2]
        self.y = frame[3]
        self.move(frame[1] - self.size / 2, frame[0] - self.size / 2)

6d7f739ebf9b52f78cd4ea7cbb1f93c72bfa0a92
<mask token>


class TargetButton(QPushButton):
    <mask token>

    def _init_view(self):
        self.setStyleSheet(
            'background: white;border-radius: {radius};color: black'.format
            (radius=self.size / 2))
        self.setGeometry(0, 0, self.size, self.size)
        self.setText('x')
    <mask token>

<mask token>


class TargetButton(QPushButton):

    def __init__(self, *__args):
        super().__init__(*__args)
        self.x = None
        self.y = None
        self.size = 15
        self._init_view()

    def _init_view(self):
        self.setStyleSheet(
            'background: white;border-radius: {radius};color: black'.format
            (radius=self.size / 2))
        self.setGeometry(0, 0, self.size, self.size)
        self.setText('x')
    <mask token>

<mask token>


class TargetButton(QPushButton):

    def __init__(self, *__args):
        super().__init__(*__args)
        self.x = None
        self.y = None
        self.size = 15
        self._init_view()

    def _init_view(self):
        self.setStyleSheet(
            'background: white;border-radius: {radius};color: black'.format
            (radius=self.size / 2))
        self.setGeometry(0, 0, self.size, self.size)
        self.setText('x')

    def setup_frame(self, frame):
        self.x = frame[2]
        self.y = frame[3]
        self.move(frame[1] - self.size / 2, frame[0] - self.size / 2)

from PyQt5.QtWidgets import QPushButton


class TargetButton(QPushButton):

    def __init__(self, *__args):
        super().__init__(*__args)
        self.x = None
        self.y = None
        self.size = 15
        self._init_view()

    def _init_view(self):
        self.setStyleSheet(
            'background: white;border-radius: {radius};color: black'.format
            (radius=self.size / 2))
        self.setGeometry(0, 0, self.size, self.size)
        self.setText('x')

    def setup_frame(self, frame):
        self.x = frame[2]
        self.y = frame[3]
        self.move(frame[1] - self.size / 2, frame[0] - self.size / 2)

from PyQt5.QtWidgets import QPushButton


class TargetButton(QPushButton):

    def __init__(self, *__args):
        super().__init__(*__args)
        self.x = None
        self.y = None
        self.size = 15
        self._init_view()

    def _init_view(self):
        self.setStyleSheet("background: white;" 
                           "border-radius: {radius};" 
                           "color: black".format(radius=self.size / 2))
        self.setGeometry(0, 0, self.size, self.size)
        self.setText("x")

    def setup_frame(self, frame):
        self.x = frame[2]
        self.y = frame[3]
        self.move(frame[1] - self.size / 2, frame[0] - self.size / 2)
