Re: Using Tcl extensions with Python?

2008-07-18 Thread Thomas Troeger
C Martin wrote: How do you setup a Tcl extension to be accessible through Python? I understand that I'll have to use native Tcl calls to use it (tk.call() etc), but I can't figure out where to put the files or how to initialize them so I can call them. The package I would like to use is TkPNG:

Re: Using Tcl extensions with Python?

2008-07-18 Thread C Martin
On Jul 17, 5:18 pm, Guilherme Polo [EMAIL PROTECTED] wrote: [snip] And.. for tkpng specifically, you won't need tk.call to use it, you just need to create your images using Tkinter.PhotoImage with a png type. Thank you Guilherme, that's all great info. Thomas Troeger [EMAIL PROTECTED] wrote:

Using Tcl extensions with Python?

2008-07-17 Thread C Martin
How do you setup a Tcl extension to be accessible through Python? I understand that I'll have to use native Tcl calls to use it (tk.call() etc), but I can't figure out where to put the files or how to initialize them so I can call them. The package I would like to use is TkPNG:

Re: Using Tcl extensions with Python?

2008-07-17 Thread Guilherme Polo
On Thu, Jul 17, 2008 at 6:48 PM, C Martin [EMAIL PROTECTED] wrote: How do you setup a Tcl extension to be accessible through Python? I understand that I'll have to use native Tcl calls to use it (tk.call() etc), but I can't figure out where to put the files or how to initialize them so I can