Re: [PyQt] Working with os.popen and qprogressdialog

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

[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):

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.

[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 qstring,