Comments (5)
@cpellet Hi, sorry for the lateness of my response,
I have implemented this binding in version 4.5.7
, it activates immediately upon a user opening the cell edit window, the variable it sends to your binded function is a tuple of (<row index>, <column index>, <key pressed>)
You can use the binding like so:
self.sheet_demo.extra_bindings([("begin_edit_cell", <put your function name here>)])
You can deactivate the binding like so:
self.sheet_demo.extra_bindings([("begin_edit_cell", None)])
Thank you for your feedback and if you have any more questions let me know
from tksheet.
Perfect! Thanks a lot for your work!
from tksheet.
Hello again,
I have spotted a small bug with this new binding: if the cell's content is updated and the table is refreshed right at the start of the editing, the changes aren't taken into account. For instance:
def edit_cell_begin(self, response):
self.sheet.set_cell_data(response[0], response[1], "edit mode")
self.sheet.refresh(False, False)
doesn't update the text box to "edit mode".
Would there be an easy fix for this?
Thank you in advance for your time
from tksheet.
Yes I absolutely put it in the wrong spot, not thinking about the consequences of getting the value before it, if convenient could you check if it is totally fixed for you in 4.5.8
? I actually changed it again slightly after your pull request because I wondered about the impact of the cell being empty and so it putting in the event.char
value anyway
Here are the release notes:
Version 4.5.8
- Add function
set_text_editor_value()
- Moved internal
begin_cell_edit
code slightly - Make Alt-Return on text editor only increase text window height if too small
from tksheet.
@ragardner
Yes, this is perfect, works as expected. It might be worth explaining the difference between set_text_editor_value()
and set_cell_data()
in the documentation now, as this is quite ambiguous.
from tksheet.
Related Issues (20)
- Manually set displayed row index HOT 3
- Dropdown menu fails to open if some rows are hidden HOT 2
- Update cells data using specific conditions on user input. HOT 27
- SyntaxWarning HOT 3
- Currently selected cell rows in sheet vs in data HOT 2
- on Rpi5, OS debian bookworm, tksheet's sheet defined col-w & row-h of 10x16 cells size has slow/lagging mouse's cursor movement HOT 12
- How to fix the maximum size of characters in tksheet ceels HOT 6
- The tabel font does not change. HOT 1
- How to Check if a Check Box is checked in tksheet 7 HOT 1
- How to accept user input even if "enter" is not pressed HOT 4
- Looking to customize scrollbar and scrollbar frame bg HOT 2
- Don't work keyboard UP arrow when navigating through the table of tksheet HOT 1
- Multiple issues with Toggle Select Mode
- Partial Horizontal Scrolling HOT 2
- Rows sorting? HOT 2
- Cell Selection Persistence HOT 2
- Keypad enter button ignored HOT 2
- Quotes multiplies when i copy text from cell with ctrl+c or popup menu. HOT 2
- Editing out of bounds when changing sheets HOT 2
- Is there a way to set copy and paste bindings on cyrillic layout? HOT 7
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.