From 03e585c2dacaa9f57039af4532e5a40d65de9032 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 25 Feb 2014 23:43:39 +0100 Subject: open a simple window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/__main__.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 src/__main__.py (limited to 'src/__main__.py') 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() + + -- cgit v1.2.3-70-g09d2