numeric text description cropped

11 views
Skip to first unread message

Randy Heiland

unread,
Mar 24, 2018, 6:17:59 PM3/24/18
to Project Jupyter
The following crops the description for the FloatText; how can I have it not do that? Basically, I'd like to display the entire description string and shorten the FloatText input box.

from ipywidgets import Layout, HBox, FloatText, Label
numVal = FloatText (
    description= 'Enter your value',
    layout = Layout(flex='0%', constWidth='200px'),  # width = 'auto', 
)
numUnits = Label('Units')
HBox([numVal, numUnits], layout=Layout(width='300px'))

Jason Grout

unread,
Mar 25, 2018, 12:16:21 AM3/25/18
to jup...@googlegroups.com

--
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/f5625704-3cfe-4257-8da2-f61b3b03872e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Randy Heiland

unread,
Mar 28, 2018, 4:23:53 AM3/28/18
to jup...@googlegroups.com
It does indeed - thanks! (I need to discard my "ipywidgets Doc Release 7.1.2" pdf) Hmm, maybe the docs you point to will also tell me why tooltip doesn't seem to work for numeric widgets...


On Sun, Mar 25, 2018 at 12:16 AM, Jason Grout <ja...@jasongrout.org> wrote:
On Sat, Mar 24, 2018 at 3:18 PM Randy Heiland <randy....@gmail.com> wrote:
The following crops the description for the FloatText; how can I have it not do that? Basically, I'd like to display the entire description string and shorten the FloatText input box.

from ipywidgets import Layout, HBox, FloatText, Label
numVal = FloatText (
    description= 'Enter your value',
    layout = Layout(flex='0%', constWidth='200px'),  # width = 'auto', 
)
numUnits = Label('Units')
HBox([numVal, numUnits], layout=Layout(width='300px'))

--
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/f5625704-3cfe-4257-8da2-f61b3b03872e%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/beczMBA6ezg/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