PySimpleGUI / PySimpleGUI/PySimpleGUI

[ Enhancement] Table: setting selected_row_colors programmatically

オープン
#5,591 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement Port - TK workaround available
主要言語
Python
スター
13.8k
フォーク
1.8k
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、Table 要素の選択された行の色に関する既存の動作と、プログラムによる更新 API を確認します。issue には再現コード、ファイル、テストの場所が記載されていません。完了条件は、ユーザーがインターフェースをブロックせずに、選択された行の色をプログラムで変更できることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
desktop
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。