Alignment of description and widgets
See original GitHub issueHello Team,
I want to align boxes and description in my code. Please let me know if there is a work around.
Code snippet:
def helper(a,b,c):
print (a)
TextField1= Text(value='', placeholder='Type client table name',description='Client List Name:',disabled=False)
TextField2= Text(value='', placeholder='Type flagged column name',description='Flagged column name:',disabled=False)
TextField3= Text(value='', placeholder='Type columns name',description='Columns name:',disabled=False)
x=interactive(helper,a=TextField1,b=TextField2,c=TextField3)
display(x)
I tried to reference another stack page and tried a code that worked for one of the users which was as below
The same did not work for me as can be seen below
Code snippet below:
align_kw = dict(
_css = (('.widget-label', 'min-width', '20ex'),),
margin = '0px 0px 5px 12px'
)
platform_ui = widgets.Dropdown(description = 'platform',options=['iPhone','iPad','Android'], **align_kw)
event_type_ui = widgets.Text(value='open', description='Test Event', **align_kw)
os_version_ui = widgets.Text(value='iOS9', description='Operating System', **align_kw)
refresh_ui = widgets.Checkbox(description='Force Refresh', **align_kw)
display(platform_ui,event_type_ui,os_version_ui,refresh_ui)
This snippet is a just a snap of a much bigger UI which I did not share because of confidentiality. Any workaround is much appreciated.
The same issue has been logged in stack overflow @ https://stackoverflow.com/questions/47577096/python-ipywidget-align-description-and-boxes
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Align class - widgets library - Flutter - Dart API docs
The alignment property describes a point in the child 's coordinate system and a different point in the coordinate system of this widget....
Read more >How to align single widgets in Flutter? - Stack Overflow
How to align widgets. To align a child widget within its parent you use the Align widget. If you know how to use...
Read more >Align Widget in Flutter - GeeksforGeeks
Align Widget is the widget that is used to align its child within itself and optionally sizes itself based on the child's size....
Read more >Flutter - Using Align Widget Examples - Woolha
This tutorial shows you how to set the alignment of a widget using Align widget in Flutter. It's quite common to align a...
Read more >Widget Alignment - Jupyter Notebooks Gallery
Alignment · Most widgets have a description attribute, which allows a label for the widget to be defined. · If a label is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for giving both the images and the code snippet so it was easy to modify your example!
Try this (in ipywidgets 7):
I fixed it, but maybe in some awkward way: