PySimpleGUI / PySimpleGUI/PySimpleGUI
[ Enhancement] Table: setting selected_row_colors programmatically
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.8k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Type of Issue (Enhancement, Error, Bug, Question)
Enhancement
Operating System
Windows
PySimpleGUI Port (tkinter, Qt, Wx, Web)
tkinter
Versions
Version information can be obtained by calling sg.main_get_debug_data()
Or you can print each version shown in ()
Python version (sg.sys.version)
'3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)]'
PySimpleGUI Version (sg.__version__)
'4.60.1'
GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)
'8.6.12'
Your Experience In Months or Years (optional)
Years Python programming experience
Years Programming experience overall
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
Anything else you think would be helpful?
Troubleshooting
These items may solve your problem. Please check those you've done by changing - [ ] to - [X]
- [ x] Searched main docs for your problem www.PySimpleGUI.org
- [x ] Looked for Demo Programs that are similar to your goal Demos.PySimpleGUI.org
- If not tkinter - looked for Demo Programs for specific port
- For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
- Run your program outside of your debugger (from a command line)
- [x ] Searched through Issues (open and closed) to see if already reported Issues.PySimpleGUI.org
- [x ] Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed but not released
Detailed Description
To be able to set the color of the selected table row programmatically would be very helpful for my current app.
Background:
The table shows a list of parameter sets for a material processing machine. If the user changes a parameter below the table related to the parameter set, the selected row should be colored to indicate that the parameter set is outdated. I cannot recalculate as the user changes parameters. This would block the user interface for a few seconds. And therefore the user should press a button for recalculation after his changes.
Code To Duplicate
Screenshot, Sketch, or Drawing
Watcha Makin?
Thanks for your great project. It saved me a lot of time so far!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the Table element's existing selected-row color behavior and its programmatic update API. The issue provides no reproduction code, file, or test location; done means users can change the selected row's color programmatically without blocking the interface.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100