tk - askopenfilenames parsing

2009-04-05 Thread daku9999
Hello, I'm having trouble with the output from askopenfilenames...: --- root = tkinter.Tk() root.withdraw() files = tkinter.filedialog.askopenfilenames(parent=root, title='Choose file(s)') if not files: tkinter.messagebox.showerror("No input file", "No input file given

Re: Stripping non-numbers from a file parse without nested lists?

2009-04-01 Thread daku9999
On Apr 1, 8:10 am, jay logan wrote: > On Apr 1, 11:05 am, jay logan wrote: > > > > > On Apr 1, 2:35 am, daku9...@gmail.com wrote: > > > > On Mar 31, 6:47 pm, "Rhodri James" > > > wrote: > > > > > What you're doing (pace error checking) seems fine for the data > > > > structures that you're using

Re: Stripping non-numbers from a file parse without nested lists?

2009-03-31 Thread daku9999
On Mar 31, 6:47 pm, "Rhodri James" wrote: > What you're doing (pace error checking) seems fine for the data > structures that you're using.  I'm not entirely clear what your usage > pattern for "dip" and "dir" is once you've got them, so I can't say > whether there's a more appropriate shape for

Stripping non-numbers from a file parse without nested lists?

2009-03-30 Thread daku9999
There has got to be a better way of doing this: I'm reading in a file that has a lot of garbage, but eventually has something that looks similar to: (some lines of garbage) dip/dir. (some more lines of garbage) 55/158 (some more lines of garbage) 33/156 etc. and I'm stripping out the 55/158 value