aboutsummaryrefslogtreecommitdiffstats
path: root/src/__main__.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-25 23:43:39 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-25 23:43:39 +0100
commit03e585c2dacaa9f57039af4532e5a40d65de9032 (patch)
treec80c831660e5645f0428106db212f89b8492c37e /src/__main__.py
parentadd copying and license (diff)
downloadxpybar-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 'src/__main__.py')
-rwxr-xr-xsrc/__main__.py17
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()
+
+