def _grid_widgets ( self ) : scrollbar_column = 0 if self . __compound is tk . LEFT else 2 self . listbox . grid ( row = 0 , column = 1 , sticky = "nswe" ) self . scrollbar . grid ( row = 0 , column = scrollbar_column , sticky = "ns" )
python tkinter align widgets in a row vertically
Puts the two whole widgets in the correct position depending on compound .
def _grid_widgets(self):
        """Puts the two whole widgets in the correct position depending on compound."""
        scrollbar_column = 0 if self.__compound is tk.LEFT else 2
        self.listbox.grid(row=0, column=1, sticky="nswe")
        self.scrollbar.grid(row=0, column=scrollbar_column, sticky="ns")