How to use the qtile.test.conftest.qtile.c.layout.height function in qtile

To help you get started, we’ve selected a few qtile examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github numirias / qtile-plasma / tests / test_layout.py View on Github external
qtile.test_window('c')
        info = qtile.c.window.info()
        assert info['x'] == 400
        assert info['y'] == 300
        assert info['width'] == 400 - 2
        assert info['height'] == 300 - 2
        qtile.c.layout.grow_height(50)
        info = qtile.c.window.info()
        assert info['height'] == 300 - 2 + 50
        qtile.c.layout.grow_width(50)
        info = qtile.c.window.info()
        assert info['width'] == 400 - 2 + 50
        qtile.c.layout.reset_size()
        info = qtile.c.window.info()
        assert info['height'] == 300 - 2
        qtile.c.layout.height(300)
        info = qtile.c.window.info()
        assert info['height'] == 300 - 2
        qtile.c.layout.width(250)
        info = qtile.c.window.info()
        assert info['width'] == 250 - 2
        qtile.c.layout.size(200)
        info = qtile.c.window.info()
        assert info['height'] == 200 - 2
        qtile.c.layout.grow(10)
        info = qtile.c.window.info()
        assert info['height'] == 210 - 2