I am trying to place multiple frames on a tkinter canvas. I want them to be scrollable and this post really helped:
Adding a scrollbar to a group of widgets in Tkinter
One thing I am not able to figure out is how do I determine the (x,y) coordinates that have to be specified in the create_window() function.
Each frame has variable number of rows in it, so the height of each frame varies. I wanted to have an equal spacing between adjacent frames. For this, I wanted to determine the height of each frame so that I could specify something like this in the for loop: y_cord = y_cord + frame_height + spacing
I have searched a lot, but was not able to find any method that would give me the height of the frame once all widgets are placed on it. I use the grid() manager for the frame, and the winfo_reqheight() method returns 1 for all frames.
I am really puzzled. Any help would be appreciated.