Closed hans-fritz-pommes closed 4 months ago
Hello,
Thanks for your report and suggestions,
I agree that these errors needed addressing and made some changes in 7.2.0
Your code should run without errors now but let me know if you have further issues
Release notes:
|
Edit: There was a slight regression in 7.2.0
which is fixed in 7.2.1
, this newer version also has a bugfix for selection box borders not showing up when selection functions are called from Sheet()
while the sheet is in the process of selecting
Hello ragardner, yes, thank you for the fast help, the code now works correctly, without errors, but it seems there is another problem:
I tested it with version 7.2.0, where I unfortunately discovered, that the index numbers don't get the same colors when they are selected by a click like when they are selected by a command. This is bad in theme "light green"
, because the numbers' color is green and doesn't change when I select the row via command -> the user cannot read the number, because it's "green on green". You can reproduce this with the code I sent above and sheet.change_theme("light green")
. I don't know yet, if the bug is fixed in 7.2.1
, but I'll let you know as soon as I checked. Thank you for your attention!
PS: I'm new to GitHub: Should I close this issue and open a new one for the colors? Because the main problem of this issue is fixed now...
(The color problem was existing before, too, but there the index' color wasn't the same as the numbers'.)
Now I checked: The color problem is existing in 7.2.1
too.
PS: I saw the change with the cell borders: Great, thank you.
Attachements: Row selected via click:
Row selected via command:
Hello,
Sorry about the color issue and thanks for alerting me
Don't worry about creating a new issue
I will have to fix this tomorrow though sorry, will update when I have
No pressure
Hello,
I think this color issue occurs because selections need a redraw in order to update the colors
If you change your redraw
arguments to redraw=True
it should fix it, let me know if this doesn't work for you though
There isn't currently code to update just the canvas items involved in a selection, I am currently not sure if it's worth changing
Nearly all of the functions in Sheet()
which have a redraw parameter will only redraw once after the code has finished running and tkinter updates
There are some cases where it might redraw a few times but even if you have 100 functions with the keyword argument redraw=True
one after the other it should only redraw a few times max afterwards
Thank you very much: That works!
I am using tksheet version 7.1.21, and it works great, but I get one Error every time, which doesn't really disturb the programme, but is very annoying. This is my code which causes the error:
When I click on a cell the second time, I get this Error:
I get another annoying error (in the same function
b1_release
) with this code when I click on a region without cells:Could you solve these problems officially? Per example with the following code: In
main_table.py
: In classMainTable
: In functionb1_release
:It would be great, thank you for your time, ragardner.