You know those Windows boxes where you can only do one thing?
Let's take this to the next level!
Make a dialog box with a button that follows your cursor everywhere!
No input may be taken. There may be output to either STDOUT or STDERR. You must open a window with one button (no text is necessary, but text may be contained in either the window title, the dialog box, or the button). The button must be clickable, and it must always follow under your cursor so that you can only click it. Upon clicking, it can do anything you want, but please do not make it crash a computer because I will be testing this... The dialog box must stay open for as long as the button is not pressed, but it does not need to close when the button is closed.
Assumptions that you can make
- You may assume that the cursor will stay within the drawing canvas.
- You may assume that the window will stay in focus, but you must not put the window out of focus as long as the button is not pressed.
Here's some example pseudocode:
Open Dialog Box Add Button to Dialog Box at position X, Y WHILE True: SET Dialog Box to CursorX - X, CursorY - Y
Test Cases cannot be provided for this challenge
This is a code-golf challenge, so the shortest valid submission by March 14th (Pi Day) wins!