Re: dogtail Scrolling to node
- From: Zack Cerza <zcerza redhat com>
- To: Александр Наумов <art_domain inbox ru>
- Cc: dogtail-list gnome org
- Subject: Re: dogtail Scrolling to node
- Date: Thu, 21 May 2009 14:47:44 -0400
On Thu, 2009-05-21 at 20:41 +0400, Александр Наумов wrote:
> Hello everybody!
>
> I'm experiencing some issues with moving the focus to the node which is outside the scrollpane.
>
> Here is the detailed scenario:
> 1) I have the huge dialog with a lot of controls, so the scrollbar is available
> 2) The node I'm looking for is somewhere at the bottom of the dialog and is currently outside the scrollpane and I want to scroll directly to it.
> 3) I can find the node, access its properties but unfortunately I do not currently know how to scroll to it via dogtail. node.grabFocus() moves the input focus into the the desired node but it still remains outside the scrollpane
>
> Any ideas how to solve such issue?
>
> Regards,
> Alexander (aka nau)
If the scrollbar itself is accessible, you may be able to manipulate it.
If not, you could try some calls to rawinput.pressKey() after the
grabFocus() call. For example, maybe:
pressKey('Up')
pressKey('Down')
Just to get the scroll view to notice where you want it to be.
Zack
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]