ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #04064
Re: Fwd: [Ubuntu-touch-coreapps] Upcoming UI Toolkit Panel/Toolbar API changes
On Thu, Sep 12, 2013 at 2:25 PM, Tim Peeters <tim.peeters@xxxxxxxxxxxxx>wrote:
>
>
> ---------- Forwarded message ----------
> From: Tim Peeters <tim.peeters@xxxxxxxxxxxxx>
> Date: Thu, Sep 12, 2013 at 2:07 PM
> Subject: Re: [Ubuntu-touch-coreapps] Upcoming UI Toolkit Panel/Toolbar API
> changes
> To: Leo Arias <leo.arias@xxxxxxxxxxxxx>
>
>
> Leo is right here for the toolbar, which we promote to use. But for some
> specific applications such as the webbrowser-app, currently the Panel
> component is used instead of the Toolbar because it is (or was) more
> flexible. There are no emulators for the Panel, so that can still be an
> issue.
>
I have worked around the lack of a Panel emulator in the browser tests in
the following way:
from ubuntuuitoolkit import emulators as uitk
class Panel(uitk.Toolbar):
pass
class Browser(uitk.MainView):
def get_toolbar(self):
return self.select_single(Panel)
[…]
Not ideal, but rather elegant and non intrusive, and it allows me to use
the standard emulators methods to reveal the panel and click on buttons
inside it.
HTH,
Olivier
References