Re: Tkinter polling example: file copy with progress bar

2010-12-15 Thread Steve Holden
On 12/14/2010 11:52 PM, JohnWShipman wrote: > you > know how us ancient Unix weenies are. Indeed we do ... ;-) regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.o

Re: Tkinter polling example: file copy with progress bar

2010-12-14 Thread JohnWShipman
On Dec 14, 8:57 am, "D'Arcy J.M. Cain" wrote: > On Tue, 14 Dec 2010 07:35:45 -0800 (PST) > > baloan wrote: > > Unfortunately you use command('cp...') to copy the file instead of > > Pythons portable library methods. This choice > > effectively makes your program work on Unix only (not Windows). >

Re: Tkinter polling example: file copy with progress bar

2010-12-14 Thread JohnWShipman
On Dec 14, 8:57 am, "D'Arcy J.M. Cain" wrote: > On Tue, 14 Dec 2010 07:35:45 -0800 (PST) > > baloan wrote: > > Unfortunately you use command('cp...') to copy the file instead of > > Pythons portable library methods. This choice > > effectively makes your program work on Unix only (not Windows). >

Re: Tkinter polling example: file copy with progress bar

2010-12-14 Thread D'Arcy J.M. Cain
On Tue, 14 Dec 2010 16:25:54 + (UTC) Harishankar 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 t

Re: Tkinter polling example: file copy with progress bar

2010-12-14 Thread Harishankar
On Tue, 14 Dec 2010 10:57:40 -0500, D'Arcy J.M. Cain wrote: > I guess I missed the beginning of this thread but can someone tell me > why one needs to download a whole other program in order to do this? > > open(out_fn, 'w').write(open(in_fn).read()) Or what about shutil? Isn't that the higher

Re: Tkinter polling example: file copy with progress bar

2010-12-14 Thread D'Arcy J.M. Cain
On Tue, 14 Dec 2010 07:35:45 -0800 (PST) baloan wrote: > Unfortunately you use command('cp...') to copy the file instead of > Pythons portable library methods. This choice > effectively makes your program work on Unix only (not Windows). > > See http://modcopy.sourceforge.net for a more portable

Re: Tkinter polling example: file copy with progress bar

2010-12-14 Thread baloan
Unfortunately you use command('cp...') to copy the file instead of Pythons portable library methods. This choice effectively makes your program work on Unix only (not Windows). See http://modcopy.sourceforge.net for a more portable version. Regards, bal...@gmail.com -- http://mail.python.org/mai

Tkinter polling example: file copy with progress bar

2010-12-12 Thread JohnWShipman
Attached below is a Tkinter script that demonstrates polling, that is, performing a long-running process in parallel with the GUI. The script asks for an input file name and an output file name and copies the input file to the output file. The copy operation is done in a child process managed wit