ragardner / tksheet

Python tkinter table widget for displaying tabular data
https://pypi.org/project/tksheet/
MIT License
408 stars 50 forks source link

Changing the width of each column separately #252

Open gmyug opened 3 weeks ago

gmyug commented 3 weeks ago

Hi. Thanks for the "tksheet". Please tell me how to set the column width separately, for example, set the column width "A" to 20, column width "B" = 100, "C" = 200 and so on. I tried almost everything and "get_column_text_width", but all columns still become the same size.

ragardner commented 3 weeks ago

Hello, I am not sure exactly how your code looks but:

This function may also interest you but it is for overwriting all displayed column widths and you have to provide an iterable of ints for every column https://github.com/ragardner/tksheet/wiki/Version-7#set-or-reset-displayed-column-widthslines