Python Forum

Full Version: comboBox to list files in a folder?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can I use comboBox to list files in a folder? And how?
Absolutely.
I bit of info would be helpful
Most important, Which graphic package are you using?
What have you attempted so far?
Here's an example for wxpython: https://github.com/wxWidgets/wxPython/bl...omboBox.py
tkinter exampe: https://stackoverflow.com/questions/1775...bobox-demo
I am using PyQt4 and QDesigner. I have created the GUI with combo boxes. I just have no clue how to get the combo box to populate with files from a folder. So the idea is to have a drop down list of wav files that will reside in a folder. Once the combo box is pressed and the drop down list populates. User selects a wav file that then loads into one of sixteen button/slots.
I have used QDesigner, but it's been a long time, so sorry I guess I cna't help
Someone else will pick up here.