Re: [Tutor] getting a wx.gauge to close!

2009-12-31 Thread Alan Gauld
Pirritano, Matthew mpirrit...@ochca.com wrote I have got a wx.gauge running and I cannot get it to go away! Any quick and dirty ideas or do you need my ugly syntax. I'm a newbie! I've no idea what you've done but guages don't normally go away. The window/dialog they are in sometimes goes

[Tutor] printing xps or gif

2009-12-31 Thread Rayon
Can I use python to print xps or gif. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] using re to match text and extract info

2009-12-31 Thread Norman Khine
hello, import re line = ALSACE 67000 Strasbourg 24 rue de la Division Leclerc 03 88 23 05 66 strasbo...@artisansdumonde.org m = re.search('[\w\-][\w\-\...@[\w\-][\w\-\.]+[a-za-z]{1,4}', line) emailAddress .search(r(\d+), line) phoneNumber = re.compile(r'(\d{2}) (\d{2}) (\d{2}) (\d{2})

Re: [Tutor] try and except

2009-12-31 Thread Dave Angel
spir wrote: Lie Ryan dixit: class Error(Exception): def __init__(self, value): self.value = value def printer(self, value): print self.value You can also use __str__ instead of printer. This will give a standard output form for your error automatically

Re: [Tutor] getting a wx.gauge to close!

2009-12-31 Thread Pirritano, Matthew
Alan, Thanks for the reply. I was hoping there might be a quick fix, and it is really a wx.Frame, that contains the wx.gauge. Here's the story. I'm using SPSS. I have written this program to create a list of doctors from medical claims data to be used in another module where I have set up check

Re: [Tutor] extracting informations (images and text) from a PDF and creating a database from it

2009-12-31 Thread Kent Johnson
On Tue, Dec 29, 2009 at 2:33 AM, Shashwat Anand anand.shash...@gmail.com wrote: I need to make a database from some PDFs. I need to extract logos as well as the information (i.e. name,address) beneath the logo and fill it up in database. Here is a commercial solution: http://www.addtoit.com

Re: [Tutor] using re to match text and extract info

2009-12-31 Thread Emmanuel Ruellan
What's wrong with the phone number? phoneNumber.search(line).groups() ('03', '88', '23', '05', '66') This looks fine to me. Here is a regex that splits the line into several named groups. Test it with other strings, though line = ALSACE 67000 Strasbourg 24 rue de la Division Leclerc 03 88 23

Re: [Tutor] printing xps or gif

2009-12-31 Thread Alan Gauld
Rayon evosw...@hotmail.com wrote Can I use python to print xps or gif. Yes. But how you do it depends on the context of what you are doing. Care to expound? Alan G. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

Re: [Tutor] using re to match text and extract info

2009-12-31 Thread Dave Angel
Norman Khine wrote: hello, import re line = ALSACE 67000 Strasbourg 24 rue de la Division Leclerc 03 88 23 05 66 strasbo...@artisansdumonde.org m = re.search('[\w\-][\w\-\...@[\w\-][\w\-\.]+[a-za-z]{1,4}', line) emailAddress .search(r(\d+), line) phoneNumber = re.compile(r'(\d{2}) (\d{2})

Re: [Tutor] printing xps or gif

2009-12-31 Thread ALAN GAULD
Well I have a folder with some sub folders that have a combo of xps and gif files I want to be able to point the program to it and have it print the contents of each sub folder. In that case I'd use os.walk to traverse the folders and find the files. I'd then use os.system() (or the