def __on_pause(self, state):
    if (state == QtCore.Qt.Checked):
        self.pause = True
    else:
        self.pause = False
    print(self.pause)
def __on_pause(self, state):
    if (state == QtCore.Qt.Checked):
        self.pause = True
    else:
        self.pause = False
    print(self.pause)