[PyQt] Simple ls -1 /home to QComboBox example

Simone simozack at yahoo.it
Sat Mar 8 07:16:56 GMT 2008


JMiahMan ha scritto:
> Just wondering if someone could give me a simple example of using ls -1 /home
> to output to a ComboBox and then be read when a button is pushed. I have
> looked all over for something I can use (even just a simple example) I know
> most likely it's going to be related to something to do with a qstring, but
> I'm at a loss.

Perhaps the os.walk(mypath) function in python? This function returns a 
list of files or directory and interating over that list you can add the 
  items in the combobox.

HTH,
Simone
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 



More information about the PyQt mailing list