Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the width of each column separately #252

Open
gmyug opened this issue Oct 27, 2024 · 1 comment
Open

Changing the width of each column separately #252

gmyug opened this issue Oct 27, 2024 · 1 comment

Comments

@gmyug
Copy link

gmyug commented Oct 27, 2024

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants