Re: First question on extending Python...

2006-06-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Larry Bates <[EMAIL PROTECTED]> wrote: >Redefined Horizons wrote: . . . >> There is a third-party application that I need to work with. It is >> closed-source, but it exposes a C API. I want to

Re: Most elegant way to generate 3-char sequence

2006-06-11 Thread Petr Jakes
sam wrote: > I have found that the more elegant the code is, the harder it is for me > to understand what it is trying to accomplish. It is my opinion that > "Keep It Simple" wins over elegance. When I have had the urge to get > elegant, I make sure I comment the elegance so my less elegant > co-wo

Re: Screen Scraping for Modern Applications?

2006-06-11 Thread ljr2600
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> wrote: > . > . > . > >For a side project I'm working on I need to be able to scrape a modern > >computer desktop. Is there any basic material already avai

Re: Screen Scraping for Modern Applications?

2006-06-11 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Scrape means simply scraping pixel colors from locations on the screen. > I'll worry about assembling it into meaningful information. > I've used pywinauto to interact with a Flash animation panel, running within an Internet Explore

Re: Screen Scraping for Modern Applications?

2006-06-11 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Scrape means simply scraping pixel colors from locations on the screen. > I'll worry about assembling it into meaningful information. import ImageGrab im = ImageGrab.grab() v = im.getpixel((x, y)) requires: http://www.pythonware.com/products/pil/

Re: How to link foreign keys & primary keys using python?

2006-06-11 Thread sonal . patankar
Hi Mr. George, Let me try it again... I am not using any relational database to store the required tables with primary keys & foreign keys When I say PRIMARY KEY => 1. It means an index is created on the specified fields (Out of various fields given in the comma separated txt file) File

An error ?

2006-06-11 Thread Bo Yang
Hi , I am confronted with an odd question in the python cgi module ! Below is my code : import cgitb ; cgitb.enable() import cgi print "Hello World !" How easy the script is , and the url is 202.113.239.51/vote/cgi/a.py but apache give me a 'Server internal error !' and the error log is : [Fr

Re: How to link foreign keys & primary keys using python?

2006-06-11 Thread sonal . patankar
MTD wrote: > Your post is confusing. Here is my advice: investigate the use of > dictionaries. Dictionaries can allow you to define data in the form { > key:data }, e.g. > > { area_code : area_data } > > { (area_code,school_code) : school_data } > > { (school_code,student_code) : student_data } T

Re: Screen Scraping for Modern Applications?

2006-06-11 Thread Daniel Nogradi
> > Scrape means simply scraping pixel colors from locations on the screen. > > I'll worry about assembling it into meaningful information. > > import ImageGrab > im = ImageGrab.grab() > v = im.getpixel((x, y)) > > requires: > > http://www.pythonware.com/products/pil/ > > ## #

Re: PIL problem after installation

2006-06-11 Thread Lad
Fredrik Lundh wrote: > Lad wrote: > > > I installed PIL under Linux but now when I try it I get the error: > > > > decoder jpeg not available > > How can I correct that problem? > > if you built PIL yourself, the setup script told you how to fix this. > > - make sure you have right libraries

Re: An error ?

2006-06-11 Thread Rene Pijlman
Bo Yang: >[Fri Jun 16 14:06:45 2006] [error] [client 10.10.110.17] malformed >header from script. Bad header=Hello World!: a.py "The output of a CGI script should consist of two sections, separated by a blank line. The first section contains a number of headers, telling the client what kind of dat

Re: wxPython: Should you use a master sizer object?

2006-06-11 Thread Morpheus
IIRC the wx dox contain stuff about sizers too. It's definitly worth to get into this stuff. Once you are used to sizers, you don't want to miss them anymore. HTH Morpheus "John Salerno" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Steve Holden wrote: > > > There doesn't seem to

Re: wxPython: Keyboard events and TreeCtrl

2006-06-11 Thread jean-michel bain-cornu
> Am I supposed to connect the method to the Frame somehow? Or does it > automatically get called when the user hits Ctrl-I, regardless of the > fact that no other methods call OnKeyDown? I think it must be connected to the treectrl. One line or a combination of : self.Bind(wx.EVT_KEY_DOWN

Re: How to link foreign keys & primary keys using python?

2006-06-11 Thread sonal
Hi Mr. George, Sorry for confusing u so much... Let me try it again... I am not using any relational database to store the required tables with primary keys & foreign keys When I say PRIMARY KEY => 1. It means an index is created on the specified fields (Out of various fields given in th

Re: How to link foreign keys & primary keys using python?

2006-06-11 Thread sonal
MTD wrote: > Your post is confusing. Here is my advice: investigate the use of > dictionaries. Dictionaries can allow you to define data in the form { > key:data }, e.g. > > { area_code : area_data } > > { (area_code,school_code) : school_data } > > { (school_code,student_code) : student_data } T

Re: How to link foreign keys & primary keys using python?

2006-06-11 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hi Mr. George, > > Let me try it again... > > I am not using any relational database to store the required tables > with primary keys & foreign keys > None the less, you are using relational database terminology. If you want people to understand you then you shou

<    1   2