GNOME Bugzilla – Bug 343878
Need a function to get the window's size
Last modified: 2009-07-17 18:27:11 UTC
Function needs: get x size and y size of a window/widget
there is a API named guiexists(), my opinion is provide another function: widgetexists(), even better to combine these two functions to one API.
For widget exists, you can create a simple python function: def WidgetExists (WindowName, ComponentName): for widget in getobjectlist (WindowName):
For widgetexists(), you can create a simple python function: def WidgetExists (WindowName, ComponentName): for widget in getobjectlist (WindowName): if widget == ComponentName: return True return False
yes, that's a solution for verify if a window exists, but there is another situation, we need to verify if a window is visible or not, but getobjectlist returns all windows event it is invisible.
yes, that's a solution for verify if a widget exists. there is another situation, we need to verify if a widget is visible or not, but getobjectlist returns all widget even it is invisible.
I think, now you can use getobjectsize, can you give a try and reopen this bug, if still it exist ? Thanks