you should launch the operation in a separate thread, and send signal to ui after each copy.
zhang On Wed, Sep 26, 2012 at 1:29 PM, Panupat Chongstitwattana < panup...@gmail.com> wrote: > Using Python to loop copy lots of files. While copying, I tell PyQt to > append feedback to QTextEdit > > for scr in sources: > shutil.copy(src, dst) > > self.feedback.append("Copying " + src) > > self.feedback is a QTextEdit > > When I start my script, PyQt would frozen up until all the copies are > completed before displaying everything back to be all at once. > > How can I make it so that each feedback are shown back to me in real time > as the files are being copied? > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe > -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe