Skip to content

Populaing filenames with a coesponding checkbox. #231

@jrknox1977

Description

@jrknox1977

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions