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

2008-03-08 Thread JMiahMan
Simone Zaccarin wrote: 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. Sorry bud that didn't work but I found from another poster that os.listdir('/home') does. I

[PyQt] Working with os.popen and qprogressdialog

2008-03-08 Thread JMiahMan
I need to create a progress bar for a command that I run with popen, but so far I've had no luck. Here's a sniplet of code: Pd = QtGui.QProgressDialog ( Creating Disk Image..., Stop, 0, 0, self) Pd.show () from os.path import isdir if isdir(self.foldername):

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

2008-03-07 Thread JMiahMan
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