Client windows dimensions

Is it possible to get the current client’s window/container dimensions? I’m looking to auto locate and size open pop-up windows if the client window is resized or docked windows are opened and the available space for pop-ups changes.


I’m using this to show window dimensions in the label:

window = system.gui.getParentWindow(event) windowWidth= window.size.width windowHeight = window.size.height #print windowWidth, windowHeight system.gui.getParentWindow(event).getComponentForPath('Root Container.lblDimension').text = "(" + str(windowWidth) + ", " + str(windowHeight) + ")"

Note: this will get the size of the window that the button is contained in. If you have docked windows mixed with floating windows, if won’t be the full size of all of these combined.