-
Notifications
You must be signed in to change notification settings - Fork 47
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
sheet lagging behind #170
Comments
So the issue is also present with tksheet version |
Hi, so its basically for storing numerical data and doing some validation...I have some validation on the parent class... self.sheet.extra_bindings("end_edit_cell", func=self.OkChange) to run okChange. If i remove ok change the value updates. The issue is since we bought a new PC that came with windows 11. Code without the additional line works on windows 10, but as a workaround i have just forced saving back the value to the cell at the end on latest version of python and your programme. so def OkChange(self, event=None):
...... here is the parent class...def createLabelAndInputs(self):
|
@ywith Thanks for the extra info, I think I have tracked down the issue. I am sorry to report that it is because of a change I made to a newer version of tksheet, I have not checked to see which version sorry but I will if you want me to Basically since the change by default using You have two choices to resolve this, you can either:
Let me know if these fix your issue, if it does I am sorry for the inconvenience, I am thinking that I should have made it clearer that the change was made, or I should have not made it the default behavior |
Hi, i added return event.text and it now crashes. what line do i change to make the behaviour how it used to be, as i just typed one result in of 32.5, it showed 3.5 and then the next result shows none and then crashes |
Hm, sorry about that, it should work with the latest version but if you want to keep your current version you could try either
Or try using |
this is a child one.... def OkChange(self, event=None):
|
Ah, if you have already tried it then I'm not sure what's going on, do you happen to know what the error is? |
i have downgraded and then kept that code of self.zippedData[Row][Col] = self.currentVal and it seems to work. |
Hm... if you want, I could maybe debug it myself if your complete program source code isn't sensitive, you can attach files to messages here I think |
Hi, it does have quite a bit of sensitive stuff in it. I have downgraded as mentioned, and am picking and choosing the child "okchanges" how they operate on a case by case basis. I have already had about 10 calls this morning saying various ones don't work, so I'm just changing each usecase of the class hardcoded. Generally the manually pulling event 3 and setting it as the value and returning together seem to be working so far. However, on some the returning has crashed it so i have just commented out the ones the return crashes it. I could do a teams or something like that to share the screen if you want to look, but I couldn't do a paste of the code as it has proprietary methods for the company in it. |
I'm really sorry about the trouble you're having, I think possibly the safest thing might be to not use With version
|
@ywith Ok sorry, I made some edits to my last comment specifically if you're using
|
For forwards compatibility you could use this instead: try:
self.sheet.MT.data_ref[row][column] = self.currentVal
except:
self.sheet.MT.data[row][column] = self.currentVal |
Hi thanks. The staff should start using the program again after lunch today. I will let you know if there are further issues. |
I have a sheet with 3 columns. Column 1 and 2 you enter data and column 3 is locked and does a calculation off the other two. However, with the latest release of python 3.11.3 and windows 11 entering any value in the column. I downgraded with #pip install tksheet==5.4.1 to show the values, but even with this the calculation seems to be 1 behind. I type 1 and 2 and not until i go back into 1 or 2 does column 3 update with the correct value
The text was updated successfully, but these errors were encountered: