Commit 7e2942ed authored by Taddeüs Kroes's avatar Taddeüs Kroes

Add screenshot utility

parent bdbd073a
#!/usr/bin/env python3
import os
import sys
from interaction import get_exapunks_window, screenshot_board
if __name__ == '__main__':
win = get_exapunks_window()
#win.raise_window()
board = screenshot_board(win).convert('RGB')
os.makedirs('screens', exist_ok=True)
board.save('screens/board%d.png' % int(sys.argv[1]))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment