I'm creating a GUI and I had an issue. My GUI will work with 3 windows, the first one is going to read the user's ID and see if he have finished the tutorials. If he finished and want to watch any tutorial again, it will open the WINDOW2, if he didn't finish yet it will open the WINDOW3. In my code, I have for example the tutorials of the section 111, which are inside a folder in my system. To acess and list them I did:
path_111 = "D:\\Users\\raulc\\Documents\\AMBIENTES\\videos\\111"
p111 = os.listdir(path_111)
But now on PySimpleGUI I don't know how to make the layout have the number of Buttons equal to the number of tutorials. Since p111
is updated every time a new file is inserted on the folder, the number of buttons should be updated too, without me. Does anyone knows how to that?