-
Notifications
You must be signed in to change notification settings - Fork 107
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
Long text getting truncated in table view #32
Comments
It doesn't support wrapping as such. I think the truncation is done in the drawText method https://github.com/dmnfarrell/tkintertable/blob/master/tkintertable/Tables.py |
Here's line 1634 [in drawText()]: There should be no trouble partitioning around newlines, but the height of the cell will now have to be considered. I haven't used tkintertable long enough -- is there only one row height for the whole table? If so, then either all rows might be height-increased; or the font size can be decreased; or the text is truncated but not until the height is filled. I suspect the first two are non-starters. While not optimal for me, if the text can be extended that would be better than nothing. (BTW, I'm not suggesting an automatic wrap - the user would have to provide embedded newlines in the text to create multiple lines in the cell.) Are you OK with any of those options? |
Yes there is a single global row height and font size. These can be changed in the prefs dialog. Note that I implemented wrapping in pandastable but just for the column header ( http://dmnfarrell.github.io/dataexplore/2018/06/21/newrelease-0.10). So the code in there might be of use also. see https://github.com/dmnfarrell/pandastable/blob/master/pandastable/headers.py |
The table can't deal with non ascii characters very well. You are using cyrilic? I'll have to see how easy it is to fix. |
it is unicode encoding, but yes, it is cyrillic. i have some other question about tkintertable, if you can help - it was amazing! |
I need to get values truncated otherwise it looks really bad for my purposes how did you make that happen? |
I'm attempting to get long text to appear in a cell. From the data file:
The text has embedded newlines (0x0a) which appear to work,
and the data appears to be going into the model correctly,
but (as seen in the second and third images) the displayed info is being truncated. Is there anything that can be done with that?
The text was updated successfully, but these errors were encountered: