After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 343878 - Need a function to get the window's size
Need a function to get the window's size
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: general
0.4.x
Other All
: Normal enhancement
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2006-06-05 08:19 UTC by Alex.Yu
Modified: 2009-07-17 18:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alex.Yu 2006-06-05 08:19:02 UTC
Function needs:
get x size and y size of a window/widget
Comment 1 Alex.Yu 2006-06-05 08:21:02 UTC
there is a API named guiexists(), my opinion is provide another function:
widgetexists(), even better to combine these two functions to one API.
Comment 2 Prashanth Mohan 2006-06-05 08:35:39 UTC
For widget exists, you can create a simple python function:

def WidgetExists (WindowName, ComponentName):
    for widget in getobjectlist (WindowName):
Comment 3 Prashanth Mohan 2006-06-05 08:36:58 UTC
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
Comment 4 Alex.Yu 2006-06-05 08:42:13 UTC
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.
Comment 5 Alex.Yu 2006-06-05 08:45:49 UTC
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.

Comment 6 Nagappan Alagappan 2009-07-17 18:27:11 UTC
I think, now you can use getobjectsize, can you give a try and reopen this bug, if still it exist ?

Thanks