Debian Codegraph @

tests/testcases/basic.py

raw symbols SCIP
1 #!/usr/bin/env python3
2
3 import xcffib.xproto as xproto
4 import xcffib
5
6 conn = xcffib.connect()
7 setup = conn.get_setup()
8 root = setup.roots[0].root
9 visual = setup.roots[0].root_visual
10 depth = setup.roots[0].root_depth
11
12 wid = conn.generate_id()
13 conn.core.CreateWindowChecked(depth, wid, root, 0, 0, 100, 100, 0, xproto.WindowClass.InputOutput, visual, 0, []).check()
14 conn.core.MapWindowChecked(wid).check()
15 conn.core.UnmapWindowChecked(wid).check()
16 conn.core.DestroyWindowChecked(wid).check()
17
18