Spaces:
Sleeping
Sleeping
Download scripts/test_overlay.py from SteveaWong/AI-Drawing-Predictor: direct link, hf CLI and curl.
- Browser
- Download file 350 Bytes
-
https://huggingface.co/spaces/SteveaWong/AI-Drawing-Predictor/resolve/main/scripts/test_overlay.py
- Command line
-
hf download hf://spaces/SteveaWong/AI-Drawing-Predictor/scripts/test_overlay.py
-
curl -L -o test_overlay.py https://huggingface.co/spaces/SteveaWong/AI-Drawing-Predictor/resolve/main/scripts/test_overlay.py
350 Bytes
| import tkinter as tk | |
| root = tk.Tk() | |
| root.title("Drag me over canvas") | |
| root.attributes('-alpha', 0.3) | |
| root.geometry("800x600+100+100") | |
| root.wm_attributes("-topmost", 1) | |
| def print_geom(): | |
| print(root.winfo_x(), root.winfo_y(), root.winfo_width(), root.winfo_height()) | |
| root.after(1000, print_geom) | |
| root.after(1000, print_geom) | |
| root.mainloop() | |