aboutsummaryrefslogtreecommitdiffstats
path: root/src/__main__.py
blob: e65472acf4fe44e316a9e273b071bca392f6b384 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python3

import time

import Xlib.display

display = Xlib.display.Display()
screen = display.screen()

window = screen.root.create_window(0, 0, 100, 100, 0, screen.root_depth)

window.map()
display.flush()
time.sleep(1)
display.close()