-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Scenario:
-
Create an array of filenames from a directory (no problem)
-
Dynamically create an 'entry' (sg.Text(), or sg.Checkbox() maybe?) for each discovered filename with a checkbox in front.
(Confused on how to use pysimplegui to achieve this.) -
The Checkbox() needs to be 'connected' to the filename they are next to as well. ( I know that Checkbox() can have a label, but don't know if I can dynamically create the Checkboxes with the labels either)
-
user selects any number of the Checkboxs and then is able to click a button which creates an array of either the filenames themselves or an array of indexes that can be passed to a function to perform actions on the files.
I looked through the demos, but I have found anything that does this kind of dynamic populating of the form in a straight forward way.
I love the module and am sure I am just missing something.
Thanks!