Skip to content
Advertisement

Is it possible to insert a checkbox in a PysimpleGui table?

I want to create a PySimpleGui table where multiple rows can be selected just using the mouse (for an app in python3). The pysimplegui table allows to select various rows by means of Ctrl and Shift as usual, but i need to do this only by clicking at the rows.

I have tried to do it by inserting a checkbox in the list of values loaded by the table but, as expected, i got the TypeError: 'Checkbox' object is not iterable error.

Is there anyway to do this in PySimpleGui, even without any checkbox? Thanks in advance for any idea

Advertisement

Answer

enter image description here

Here’s my way to go by using sg.Tree

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement