Tkinter polling example: file copy with progress bar
D'Arcy J.M. Cain
darcy at druid.net
Tue Dec 14 11:33:00 EST 2010
On Tue, 14 Dec 2010 16:25:54 +0000 (UTC)
Harishankar <v.harishankar at gmail.com> wrote:
> On Tue, 14 Dec 2010 10:57:40 -0500, D'Arcy J.M. Cain wrote:
> > open(out_fn, 'w').write(open(in_fn).read())
> Or what about shutil? Isn't that the higher level file operation module?
At least that's in the standard library but even then it can be
overkill for a simple copy. It does do some error checking that the
above doesn't do if you need that.
--
D'Arcy J.M. Cain <darcy at druid.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
More information about the Python-list
mailing list