Fredrik Lundh | 11 Dec 10:23 2005

ANN: WCK for Tkinter 1.1 final (december 11, 2005)

The Widget Construction Kit (WCK) is an extension API that allows
you to implement custom widgets in pure Python.  The WCK can be
(and is being) used for everything from light-weight display widgets
to full-blown editor frameworks.

The Tkinter3000 implementation of the WCK supports all recent
versions of Python and Tk/Tkinter.

Compared to 1.0, the 1.1 release adds improved controller support,
resource caching for pens, brushes, and fonts, and support for
creating image objects from data in strings.

Introduction:
    http://www.effbot.org/zone/wck-1.htm

Downloads:
    http://www.effbot.org/downloads#tkinter3000

Documentation:
    http://www.effbot.org/zone/wck.htm
    http://www.effbot.org/zone/pythondoc-api.htm

Using WCK and AggDraw to draw anti-aliased graphics:
    http://www.effbot.org/zone/wck-aggview.htm

enjoy /F
Michael Lange | 18 Dec 19:30 2005
Picon

Re: Is it possible to flatten a Canvas and an Image?

On Wed, 14 Dec 2005 21:53:32 -0500 (EST)
"Gerardo Juarez" <gerardo <at> computo-industrial.com.mx> wrote:

Hi Gerardo,

> 
> Hi, I'm new to the list and just writing my second application in
> python/Tkinter. I have skimmed over the digests of the list but have not
> found this subject discussed.
> 
> I have a Canvas and a PhotoImage displayed in it. The application draws a
> number of lines and other vector-features over the image, which works
> fine. Now, if I save the image, it is exactly that which is saved: the
> image. What about the vectors? Is there a way to 'flatten' the two layers
> that are there?
> If not, how would you suggest I could save the vectors over the image as a
> single image - short of retracing them with my own line-drawing routine on
> the image?
> 

I never tried it, but I believe the canvases postscript() method should do what you want,
you would just have to convert its output file back into a gif or something.

Regards

Michael
Mohammad Tayseer | 26 Dec 13:36 2005
Picon

Tix and Pmw comparison

Dear friends
is there a comparison between Tix and Pmw? i couldn't find a comparison between these libraries. is there a comparison between them and bwidgets too?

thanks in advance

Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss <at> python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Michael Lange | 28 Dec 01:00 2005
Picon

Re: Tix and Pmw comparison

On Mon, 26 Dec 2005 04:36:59 -0800 (PST)
Mohammad Tayseer <m_tayseer82 <at> yahoo.com> wrote:

> Dear friends
> is there a comparison between Tix and Pmw? i couldn't find a comparison between these libraries. is there a
comparison between them and bwidgets too? 
> 
> thanks in advance

Hi Mohammad,

a brief comparison from my own experience:

Tix:
pros:
 - very handy interface
 - has some nice widgets that Pmw misses, like progress bar and tree widget
 - looks nicer than Pmw (if that matters)
 - may perform better than Pmw (if that matters)
cons:
 - no Python documentation, only unix man pages
 - some linux distributions used to ship broken Tix versions, so if your programs are supposed to run on any platform
   stability might be an issue

Pmw:
 - the interface looked a little alien to me at a first glance, however:
 - very flexible, you can easily set up your own megawidgets
 - excellent documentation
 - excellent backwards compatibility and compatibility with any versions of Python and Tk
 - unbeatable stability

pybwidget:
 - as far as I know it's very stable on the tcl side, however the python module is not much tested, so it might
contain bugs
 - no python docs, only unix man pages

So my (very personal) conclusion:

If you need to focus on reliability (and want good docs) stick with Pmw, if you need some widget that is
missing from Pmw,
try to pick it from bwidget.
If look and feel (and maybe performance) is an issue (or of course if the others don't have the widget you
need) try Tix.
If you want to pick the best widgets you can get, it should be no problem to use all three at a time, and use the
widget from the library that you like the most ( for example the Pmw.EntryField is hard to beat, but you may
also want
to use the Tix.DirTree and the bwidget.ListBox).

I hope this helps

Michael
Cameron Laird | 28 Dec 22:40 2005
Picon

Re: Tix and Pmw comparison

On Wed, Dec 28, 2005 at 01:00:53AM +0100, Michael Lange wrote:
			.
			.
			.
> a brief comparison from my own experience:
> 
> Tix:
> pros:
			.
			.
			.
Who volunteers to transcribe this into the Wiki?
Mohammad Tayseer | 29 Dec 08:15 2005
Picon

Re: Tix and Pmw comparison

> Who volunteers to transcribe this into the Wiki?
well, i asked the question, so i have to do this

Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss <at> python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Gmane