|
374 | 374 | "items_layout = Layout(width='auto') # override the default width of the button to 'auto' to let the button grow\n",
|
375 | 375 | "\n",
|
376 | 376 | "box_layout = Layout(display='flex',\n",
|
377 |
| - " flex_flow='column', \n", |
| 377 | + " flex_flow='column',\n", |
378 | 378 | " align_items='stretch', \n",
|
379 | 379 | " border='solid',\n",
|
380 | 380 | " width='50%')\n",
|
|
401 | 401 | "from ipywidgets import Layout, Button, HBox\n",
|
402 | 402 | "\n",
|
403 | 403 | "items = [\n",
|
404 |
| - " Button(description='weight=1', layout=Layout(flex='1 1 0%', width='auto'), button_style='danger'),\n", |
405 |
| - " Button(description='weight=3', layout=Layout(flex='3 1 0%', width='auto'), button_style='danger'),\n", |
406 |
| - " Button(description='weight=1', layout=Layout(flex='1 1 0%', width='auto'), button_style='danger'),\n", |
| 404 | + " Button(description='weight=1', layout=Layout(flex='1', width='auto'), button_style='danger'),\n", |
| 405 | + " Button(description='weight=3', layout=Layout(flex='3', width='auto'), button_style='danger'),\n", |
| 406 | + " Button(description='weight=1', layout=Layout(flex='1', width='auto'), button_style='danger'),\n", |
407 | 407 | "]\n",
|
408 | 408 | "box_layout = Layout(align_items='stretch', width='70%')\n",
|
409 | 409 | "HBox(children=items, layout=box_layout)"
|
|
868 | 868 | "metadata": {},
|
869 | 869 | "outputs": [],
|
870 | 870 | "source": [
|
871 |
| - "# Utils widgets\n", |
872 | 871 | "from ipywidgets import Button, Layout, jslink, IntText, IntSlider\n",
|
873 | 872 | "\n",
|
874 | 873 | "def create_expanded_button(description, button_style):\n",
|
|
1468 | 1467 | " layout=Layout(\n",
|
1469 | 1468 | " width='50%',\n",
|
1470 | 1469 | " grid_template_columns='100px 50px 100px',\n",
|
1471 |
| - " grid_template_rows='80px auto 80px', \n", |
| 1470 | + " grid_template_rows='80px auto 80px',\n", |
1472 | 1471 | " grid_gap='5px 10px')\n",
|
1473 | 1472 | " )"
|
1474 | 1473 | ]
|
|
0 commit comments