INNER CODE UNIT · Python

mouseReleaseEvent

cunarist/solie · package/solie/window/main.py:121

    def mouseReleaseEvent(self, event: QMouseEvent) -> None:
        self.last_interaction = datetime.now(UTC)

        if self.board.isEnabled():
            return

        async def job_ask() -> None:
            answer = await ask(
                "Board is locked. Do you want to unlock it?",
                "You will be able to manipulate the board again.",
                ["No", "Yes"],
            )
            if answer in (0, 1):
                return
            self.board.setEnabled(True)

        spawn(job_ask())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…