setting focus on a widget

28 views
Skip to first unread message

Randy Heiland

unread,
May 11, 2018, 12:45:20 PM5/11/18
to Project Jupyter
Is there a way to programmatically give a widget focus? I have a multi-tabbed UI and would like to have the slider on an 'interactive' widget have focus when I select the tab in which it lives (so the user can immediately press keys to step the slider).

thanks, Randy

Jason Grout

unread,
May 11, 2018, 12:55:30 PM5/11/18
to jup...@googlegroups.com
No, there's not a way to change the frontend focus from python.

Jason


On Fri, May 11, 2018 at 9:45 AM Randy Heiland <randy....@gmail.com> wrote:
Is there a way to programmatically give a widget focus? I have a multi-tabbed UI and would like to have the slider on an 'interactive' widget have focus when I select the tab in which it lives (so the user can immediately press keys to step the slider).

thanks, Randy

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/ca466ba6-b5d5-4460-946c-e8ed8b4b5538%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Grout

unread,
May 11, 2018, 12:56:37 PM5/11/18
to jup...@googlegroups.com
Clarifying to make sure we're talking about the same thing: No, there's not a way to change the frontend focus from python in the core ipywidgets system.

Randy Heiland

unread,
May 11, 2018, 1:29:19 PM5/11/18
to jup...@googlegroups.com
Thanks for the prompt reply! If you're suggesting there are other ways, I'd be curious. Basically, I'm just looking for any way to make it easier on the user (including me). Being able to tab-select over multiple widgets on a panel sort of helps, but not so much for my layout. And I find it slightly annoying to have to move my mouse carefully onto the small-ish slider circle to select it. I know, we're incredibly spoiled :)

On Fri, May 11, 2018 at 12:56 PM, Jason Grout <ja...@jasongrout.org> wrote:
Clarifying to make sure we're talking about the same thing: No, there's not a way to change the frontend focus from python in the core ipywidgets system.
On Fri, May 11, 2018 at 9:55 AM Jason Grout <ja...@jasongrout.org> wrote:
No, there's not a way to change the frontend focus from python.

Jason


On Fri, May 11, 2018 at 9:45 AM Randy Heiland <randy....@gmail.com> wrote:
Is there a way to programmatically give a widget focus? I have a multi-tabbed UI and would like to have the slider on an 'interactive' widget have focus when I select the tab in which it lives (so the user can immediately press keys to step the slider).

thanks, Randy

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/ca466ba6-b5d5-4460-946c-e8ed8b4b5538%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/stFRKanOW5c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages