Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existing web views cannot be replaced with new URLs #66

Open
lo5 opened this issue Jul 15, 2022 · 0 comments
Open

Existing web views cannot be replaced with new URLs #66

lo5 opened this issue Jul 15, 2022 · 0 comments
Assignees
Labels
area/ui Related to front-end type/bug Doesn't work as expected

Comments

@lo5
Copy link
Member

lo5 commented Jul 15, 2022

This doesn't work in v0.13+:

# ## Open web pages in an existing view
# Pass a URL to `view.jump()` with `target=` set to the name of the view to replace the contents of that view.
#
# In the example below, the `name` of the web view is set to `'example'`,
# and the `view.jump()` call uses `'example'` as the `target`.
def open_web_page_existing(view: View):
    view(
        'Click Continue to open Wikipedia in the web view below.',
        box(mode='web', name='example', path='https://example.com')
    )
    view.jump('https://en.wikipedia.org', target='example')

A redraw that causes the example frame to be momentarily non-existent when jump() is invoked.

@lo5 lo5 added the type/bug Doesn't work as expected label Jul 15, 2022
@lo5 lo5 self-assigned this Jul 15, 2022
@lo5 lo5 added the area/ui Related to front-end label Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui Related to front-end type/bug Doesn't work as expected
Projects
None yet
Development

No branches or pull requests

1 participant