1111
1212from python_toolkit .bhom_tkinter .widgets ._packing_options import PackingOptions
1313from python_toolkit .bhom_tkinter .widgets ._widgets_base import BHoMBaseWidget
14- from python_toolkit .bhom_tkinter .widgets .button import Button
1514from python_toolkit .bhom_tkinter .widgets .list_box import ScrollableListBox
1615
1716Scorer = Callable [[str , str ], Optional [float ]] # (query, item) -> score (higher is better), or None for no match
@@ -26,7 +25,7 @@ def _load_bhom_search():
2625 if _BHOM_SEARCH is None :
2726 import clr # pylint: disable=import-outside-toplevel,import-error
2827
29- sys .path .append (os .path .expandvars ("%ProgramData%\BHoM\Assemblies" ))
28+ sys .path .append (os .path .expandvars ("%ProgramData%\\ BHoM\ \ Assemblies" ))
3029 clr .AddReference ("Search_Engine" )
3130 clr .AddReference ("Search_oM" )
3231 from BH .Engine .Search import Compute # pylint: disable=import-outside-toplevel,import-error
@@ -132,10 +131,10 @@ def __init__(
132131 controls .pack (side = "top" , fill = tk .X , pady = (6 , 0 ))
133132 controls .columnconfigure (0 , weight = 1 )
134133 controls .columnconfigure (1 , weight = 1 )
135- select_widget = Button (controls , text = "Select All" , command = self .select_all )
136- select_widget . grid ( row = 0 , column = 0 , sticky = "ew" , padx = (0 , 4 ))
137- deselect_widget = Button (controls , text = "Deselect All" , command = self .deselect_all )
138- deselect_widget . grid ( row = 0 , column = 1 , sticky = "ew" , padx = (4 , 0 ))
134+ ttk . Button (controls , text = "Select All" , command = self .select_all ). grid (
135+ row = 0 , column = 0 , sticky = "ew" , padx = (0 , 4 ))
136+ ttk . Button (controls , text = "Deselect All" , command = self .deselect_all ). grid (
137+ row = 0 , column = 1 , sticky = "ew" , padx = (4 , 0 ))
139138
140139 self .summary_label : Optional [ttk .Label ] = None
141140 if self ._show_summary :
0 commit comments