From f869528a44f37bd8e723979b230f908e81753763 Mon Sep 17 00:00:00 2001 From: Allusive_ <99632976+allusive-dev@users.noreply.github.com> Date: Tue, 1 Aug 2023 08:58:04 +1000 Subject: Add files via upload --- tests/testcases/basic.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/testcases/basic.py (limited to 'tests/testcases/basic.py') diff --git a/tests/testcases/basic.py b/tests/testcases/basic.py new file mode 100644 index 0000000..d0ecaf1 --- /dev/null +++ b/tests/testcases/basic.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python + +import xcffib.xproto as xproto +import xcffib + +conn = xcffib.connect() +setup = conn.get_setup() +root = setup.roots[0].root +visual = setup.roots[0].root_visual +depth = setup.roots[0].root_depth + +wid = conn.generate_id() +conn.core.CreateWindowChecked(depth, wid, root, 0, 0, 100, 100, 0, xproto.WindowClass.InputOutput, visual, 0, []).check() +conn.core.MapWindowChecked(wid).check() +conn.core.UnmapWindowChecked(wid).check() +conn.core.DestroyWindowChecked(wid).check() + + -- cgit v1.2.3