|
|
|
|
|
by senand
1219 days ago
|
|
Interesting! Congrats on the launch. I tried it out, and just first feedback: - I often use the "Home" and "End" key to go the start/end of the line when I'm editing a cell. It scrolls to start/end of the whole spreadsheet, however. Since I'm not a spreadsheet user, I'm not sure if that's expected. - The handlers like "on_dropdown_change" should receive an argument for the cell it's coming from, so you can e.g. change the cell that's next to it. Or how else is this supposed to be done? It's quite cool :-) I suppose one problem could be integration with existing Google Sheets / Excel sheets? |
|
> The handlers like "on_dropdown_change" should receive an argument for the cell it's coming from
They do! If you define a function that does not take a parameter it is all fine, but we introspect if you do and if so, pass on an event object:
def on_dropdown_change(value, event): event.cell.set_background_color(value * 50 + 100, 100, 100)
would change the cell with the drop down's background color based on the value selected