Re: [Tutor] How to save tkinter canvas....

2006-12-09 Thread Alan Gauld
"Alan Gauld" <[EMAIL PROTECTED]> wrote > I seem to recall seeing a function there that could work with > Tkinter > Canvas objects, and once in PIL it should be possible to save it. Looks like it works the other way, you can put PIL images into a canvas. BUT there is a Canvas.postscript metho

Re: [Tutor] help

2006-12-09 Thread Python
On Sat, 2006-12-09 at 20:19 +0500, Kamran Haider wrote: > Hi > > I have got some python related queries. I am working on an MRes > project > which involves a bit of programing in python. Actually, I am using a > python program developed by someone, which gives pairwise genetic > distances between

[Tutor] help

2006-12-09 Thread Kamran Haider
HiI have got some python related queries. I am working on an MRes projectwhich involves a bit of programing in python. Actually, I am using apython program developed by someone, which gives pairwise geneticdistances between a set of sequences (I don't know how...) and outputs asimple text file of t

Re: [Tutor] problems pickling functions

2006-12-09 Thread Arild B. Næss
Den 8. des. 2006 kl. 15.43 skrev Kent Johnson: > Arild B. Næss wrote: >> Den 8. des. 2006 kl. 14.05 skrev Kent Johnson: >>> Why do you need to pickle the function? Is it created >>> dynamically? Can you just pickle the data? >>> >>> Kent >>> >> Thanks. >> I guess it's not absolutely necessary

Re: [Tutor] How to save tkinter canvas....

2006-12-09 Thread Alan Gauld
"Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote > I have a window that contains bar chart on a Canvas (tkinter). Is > there a > way in which I can provide the user the option of saving it as an > image > file. Have you looked at the PIL library? I seem to recall seeing a function there that coul

Re: [Tutor] Of integers, relations and trees

2006-12-09 Thread Andrei
Tor Hildrum wrote: > I have this problem which I thought would be trivial, but I can't > seem to figure out a decent way to do it. > > Say I have the following file: > 10 > -100 > -108 > --1080 > 12 > 20 > > In lack of a better explanation, here is how it works: > A level in the tree follows t

[Tutor] How to save tkinter canvas....

2006-12-09 Thread Asrarahmed Kadri
Hi Folks, I have a window that contains bar chart on a Canvas (tkinter). Is there a way in which I can provide the user the option of saving it as an image file. Some pointers needed.. thanks in anticipation. Regards, Asrarahmed Kadri -- To HIM you shall return. __