Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: exporting from Tkinter Canvas object in PNG

Reply
Thread Tools

Re: exporting from Tkinter Canvas object in PNG

 
 
harold fellermann
Guest
Posts: n/a
 
      01-11-2005
On 11.01.2005, at 19:14, Nicolas Pourcelot wrote:

> Hello,
> I'm new to this mailing list and quite to Pyhon too.
> I would like to know how to export the contain of the Canvas object
> (Tkinter) in a PNG file ?
> Thanks
> Nicolas Pourcelot
> --
> http://mail.python.org/mailman/listinfo/python-list


you can make a postscript dump using

>>> canvas = Tkinter.Canvas(master)
>>> canvas.postscript(file="your_file_name.ps")


If you have ImageMagick, you can later use

% convert your_file_name.ps your_file_name.png

on the comand line, if you want to have png.


- harold -

--
Science is to see what everybody else has seen,
and think what nobody else has thought.
--

 
Reply With Quote
 
 
 
 
Cameron Laird
Guest
Posts: n/a
 
      01-16-2005
In article <mailman.528.1105468439.22381.python->,
harold fellermann <> wrote:
>On 11.01.2005, at 19:14, Nicolas Pourcelot wrote:
>
>> Hello,
>> I'm new to this mailing list and quite to Pyhon too.
>> I would like to know how to export the contain of the Canvas object
>> (Tkinter) in a PNG file ?
>> Thanks
>> Nicolas Pourcelot
>> --
>> http://mail.python.org/mailman/listinfo/python-list

>
>you can make a postscript dump using
>
> >>> canvas = Tkinter.Canvas(master)
> >>> canvas.postscript(file="your_file_name.ps")

>
>If you have ImageMagick, you can later use
>
>% convert your_file_name.ps your_file_name.png
>
>on the comand line, if you want to have png.

.
.
.
Different ideas appear in <URL:
http://groups-beta.google.com/group/...c5f5ea9fb89b5f >.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chrome, canvas, PNG, Save Image As Dr J R Stockton Javascript 2 12-29-2009 01:40 PM
SkimpyGimpy PNG canvas w/ Javascript mouse tracking aaronwmail-usenet@yahoo.com Javascript 0 05-08-2007 12:21 PM
SkimpyGimpy PNG canvas w/ Javascript mouse tracking aaronwmail-usenet@yahoo.com Python 2 05-07-2007 11:47 PM
ANN: PNG image CAPTCHA with PNG canvas available (SkimpyGimpy) aaronwmail-usenet@yahoo.com Python 0 04-18-2007 07:33 PM
exporting from Tkinter Canvas object in PNG Nicolas Pourcelot Python 0 01-11-2005 06:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57