我正在尝试在画布上放置一个滚动条,以滚动其中包含的框架,但是它没有滚动任何内容,有人可以告诉我哪里出了问题?
# CREATING THE SECTION FOR RESERVATION CONTROL
reservation_control = LabelFrame(main, text='Controle de Reservas', labelanchor='n')
# CREATING THE SCROLLBAR FOR VISUALIZATION
res_scrollbar = Scrollbar(reservation_control)
res_scrollbar.pack(side='left', fill='y')
# CREATING AND USING THE CANVAS FOR THE SCROLLBAR
canvas = Canvas(reservation_control, yscrollcommand= res_scrollbar.set)
res_scrollbar.config(command = canvas.yview)
# CREATING A FRAME THAT IS AN INTERFACE BETWEEN THE SCROLLBAR CANVAS AND THE LISTS
interface_frame = Frame(canvas)
(...)
# PACKING THE INTERFACE FRAME
interface_frame.pack(fill='both', expand='true', side='left')
# PACKING THE CANVAS CONTAINER
canvas.pack(fill='both', expand='true', side='left')
# PACKING THE RESERVATION CONTROL SECTION
reservation_control.pack(fill='both',expand='true', side='left')