MCPcopy
hub / github.com/qtile/qtile / assert_dimensions

Function assert_dimensions

test/layouts/layout_utils.py:20–28  ·  view source on GitHub ↗

Asserts dimensions of window

(self, x, y, w, h, win=None)

Source from the content-addressed store, hash-verified

18
19
20def assert_dimensions(self, x, y, w, h, win=None):
21 """Asserts dimensions of window"""
22 if win is None:
23 win = self.c.window
24 info = win.info()
25 assert info["x"] == x, info
26 assert info["y"] == y, info
27 assert info["width"] == w, info
28 assert info["height"] == h, info
29
30
31def assert_dimensions_fit(self, x, y, w, h, win=None):

Calls 1

infoMethod · 0.45