Comments (7)
I have removed the tries and made the ms a variable, version notes:
Version 4.9.96
- Fix bug with dragging scrollbar when columns are shorter than window
- Add startup argument
after_redraw_time_ms
default is100
from tksheet.
i should probably add that while this helps if your data is being generated in the main thread (i.e. where mainloop runs) this doesn't help once threading is involved as then its always idle. in which case I changed the above to a normal after
call with a 100ms timeout. this may be beneficial to offer as an option
from tksheet.
Hm, yes thanks, this seems like a good idea, would a standard after call with the variable check be okay as disabled* by default? and you think 100ms would be an appropriate time?
edited to disabled by default*
from tksheet.
for me a standard after call worked better and would allow people to tailor to their own needs, are you thinking additional arguments to the constructor for this or a function to set this behavior up?
from tksheet.
It should be working in 4.9.95
to enable it you have to use redraw = True
give it a go and let me know if something isn't right
from tksheet.
this looks good, a few comments though:
- why have you wrapped every call to
after
in atry: except:
block? I've never ever seen this call fail as it only queues an event to happen and atry: except
without a specific exception class isn't very clean. - would it not be better to use an instance variable set to 100ms by default rather than hard coding it everywhere used?
from tksheet.
Thanks for your comments,
I used try
because I recalled scenarios in the past where the window had been destroyed and after was called resulting in an error which froze the program and prevented it from closing properly, although I wasn't sure if it's of any use having it before hand and the redraw method already has a try
in it so maybe i'll remove them
Yeah good point about the variable, will change soon
from tksheet.
Related Issues (20)
- Problem with sheet.header_font HOT 2
- Make headers responsive to window size HOT 4
- display_columns() not working as per wiki HOT 2
- Issue with deleting and undoing non-consecutive columns/rows HOT 1
- Delete rows with hidden rows not updating hidden row indexes HOT 1
- Cells can not be edited when using new auto_resize_columns property HOT 2
- Can i have help changing listed behavior of tksheet ? HOT 6
- Cell highlights disappear when clicking in other cells HOT 1
- Substract values of column 2 with values from column 1 HOT 6
- Custom theme HOT 1
- Feature request: automatically set sheet size to content size
- How to scroll two sheets at the same time HOT 2
- How to change appereance of the Thsheet when bindings are disabled HOT 2
- In drop down, how do i display default text? HOT 1
- Is it possible to center the text in vertical alignment? HOT 1
- Include freezing option HOT 1
- Calculos con tksheet
- trouble with shifting the data over the tksheet HOT 1
- Higher resolution support HOT 9
- Add prompt for wrong keyward args in get_sheet_data/get_cell_data/get_row_data/get_column_data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tksheet.