Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/p/y/PyWO-HEAD/tests/core/windows_test.py   PyWO(Download)
from tests.common_test import MockedXlibTests
from tests.common_test import DESKTOPS, DESKTOP_WIDTH, DESKTOP_HEIGHT, VIEWPORTS
from tests.common_test import WIN_X, WIN_Y, WIN_WIDTH, WIN_HEIGHT
from pywo.core import Window, WindowManager, State, Type
from pywo.core import Position, Geometry, Layout
    def test_geometry_normal_window(self):
        # initial geometry
        geometry = self.win.geometry
        self.assertEqualGeometry(geometry, WIN_X, WIN_Y, WIN_WIDTH, WIN_HEIGHT)
        # set same geometry
        self.win.set_geometry(geometry)
        geometry = self.win.geometry
        self.assertEqualGeometry(geometry, WIN_X, WIN_Y, WIN_WIDTH, WIN_HEIGHT)