diff options
| author | Allusive_ <[email protected]> | 2023-08-01 08:58:04 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-01 08:58:04 +1000 |
| commit | f869528a44f37bd8e723979b230f908e81753763 (patch) | |
| tree | 4a6d71a6e862a85c0040a4b75adc5ac721b41c65 /tests/testcases/basic.py | |
| parent | Initial commit (diff) | |
| download | compfy-f869528a44f37bd8e723979b230f908e81753763.tar.xz compfy-f869528a44f37bd8e723979b230f908e81753763.zip | |
Add files via upload
Diffstat (limited to 'tests/testcases/basic.py')
| -rw-r--r-- | tests/testcases/basic.py | 18 |
1 files changed, 18 insertions, 0 deletions
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() + + |