Editing values of a table selection #4067
Replies: 3 comments
-
|
Firstly, congratulations on getting this far without a programming background!
I am guessing that the thing you are missing is that Row objects have the data stored in attributes. Depending on how you have your table set up, they are likely to come from the heading names or the This section of code in the Table example shows getting data from a row: toga/examples/table/table/app.py Line 46 in dacd077 using row.year to get the year, and row.title[1] to get the title out of a column which has an icon and text.
This might be better as a post in the discussions section, rather than a bug. |
Beta Was this translation helpful? Give feedback.
-
|
...Man, I was in the middle of typing up a response when Corran beat me to it. I'll just add:
Off the top of my head, I'm not sure there's a good reason we couldn't support these. I'm not sure how useful making them iterable would be, but being able to access values as indices, e.g.
A table's |
Beta Was this translation helpful? Give feedback.
-
It conflicts with the You could have an alternative API design where rows are mappings and the children are accessed via an attribute (eg. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
At the end of 2025, I set out an ambitious goal for 2026: Create a fully functional inventory app by the end of the year. I use ambitious as an adjective to describe the project, because for a person with no programming experience this is far beyond my scope of knowledge. But I fully committed to the task with no actual idea of what the work actual implied, drastically underestimating the amount of work that goes into building a rudimentary program. So here I am, after “x” amount of untracked hours of coding, frustration, confusion and wanting to give up, with a simple app which allows me to log in and will display the following pages:
Due to a lack of where to start, after a very superficial research I decided to use Beeware / Toga to build this app (due to a lack of knowledge, and because I avoided overthinking so I just chose whatever).
To the inventory table I was able to successfully, create a Toga table with ”Add” and “Delete” buttons work just fine. However, I can’t seem to figure out how to create a functional “Edit” button.
I’ve tried tinkering with it here and there, but the issue doens’t seem to be structural or syntax, rather that row objects are:
So I must stop trying to read data from the Row object.
Any tips? Possible solutions? are people who have encountered similar issues?
Steps to reproduce
Expected behavior
It should edit the row data.
Screenshots
No response
Environment
Logs
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions