I have been trying to create an application using Tkinter module for Python 3.4.2 There are N number of labels. For each of these N number of labels, I am trying to create a row of Textboxes which might/might not be of the same length. The number of Textboxes for each label might be different too. I need a scrollbar for this window. So I created a canvas and used Scrollbar widget to create the horizontal and vertical scrollbar. In this canvas, I entered a frame so that I could add my labels and Textboxes. To construct Textboxes of varying lengths I used grid() method for the widgets. I read that the grid columns are of length enough to accommodate the largest widget(here it is a Textbox) and you can't add multiple widgets in a cell of the grid.
I used columnspan property of the Textbox widget but was of no help. e1.grid(row=i, column=1, columnspan=width) for the first column and e1.grid(row=i, column=width_sum, columnspan=width) for the subsequent columns. Here width_sum is the sum of length of different textboxes because of the present one. The width_sum parameter is reset for every Label (which is present in a different row).
I need output something like this:
Thanks in advance.
