How can I adjust the size of a dropdown or other widgets with Bokeh in Python?
I have the following dropdowns acting as filters on a graphic:
As you can see, they're all different lengths. They're in a widgetbox like this:
widgets = widgetbox([school_selector,
degree_selector,
student_selector,
began_exam_selector,
finished_exam_selector],
sizing_mode='fixed')
which gets dropped into the final layout like this:
dashboard_layout = column(widgets, column(time_v_note, exam_data_table))
curdoc().add_root(dashboard_layout)
I have tried 'fixed', 'scale_width', and 'stretch_both' as options for sizing_mode but nothing has change. I just want all the filters to be the same size so there's no jagged edge.
Thanks
EDIT:
Here's what the Select() construction looks like:
#### School Selector
## Selection Options
school_select_opts = ['All'] + list(exam_df['School ID - School Name'].unique())
## Selector Build
school_selector = Select(title='1) Choose a School:',
options=school_select_opts,
value='All')
#### Degree Selector
## Selection Options
degree_select_opts = ['All'] + list(exam_df['Degree'].unique())
## Selector Build
degree_selector = Select(title='2) Choose a Degree:',
options=degree_select_opts,
value='All')
#### Exam Selector
## Selection Options
exam_select_opts = ['All'] + list(exam_df['Exam ID - Exam Name'].unique())
## Selector Build
exam_selector = Select(title='3) Choose an Exam:',
options=exam_select_opts,
value='All')
#### Student Selector
## Selection Options
student_select_opts = ['All'] + list(exam_df['Applicant ID - Full Name'].unique())
## Selector Build
student_selector = Select(title='4) Choose a Student:',
options=student_select_opts,
value='All')
#### Begin Exam Selector
## Selection Options
begin_exam_opts = ['All', 'Yes', 'No']
## Selector Build
began_exam_selector = Select(title='Began Exam?',
options=begin_exam_opts,
value='All')
#### Finished Exam Selector
## Selection Options
finished_exam_opts = ['All', 'Yes', 'No']
## Selector Build
finished_exam_selector = Select(title='Finished Exam?',
options=finished_exam_opts,
value='All')
