Andreas Pakulat-2 wrote:
>
> Thats because while you run your process the event loop is not run and
> thus no painting updates are being done. I suggest to take a look at
> QProcess as that one sends the output in an asynchronous way and thus
> allows the event loop to update the paintings.
>
>
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):
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.
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,