diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-25 23:43:39 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-25 23:43:39 +0100 |
commit | 03e585c2dacaa9f57039af4532e5a40d65de9032 (patch) | |
tree | c80c831660e5645f0428106db212f89b8492c37e | |
parent | add copying and license (diff) | |
download | xpybar-03e585c2dacaa9f57039af4532e5a40d65de9032.tar.gz xpybar-03e585c2dacaa9f57039af4532e5a40d65de9032.tar.bz2 xpybar-03e585c2dacaa9f57039af4532e5a40d65de9032.tar.xz |
open a simple window
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-x | src/__main__.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/__main__.py b/src/__main__.py new file mode 100755 index 0000000..e65472a --- /dev/null +++ b/src/__main__.py @@ -0,0 +1,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() + + |