10.12.2009 20:32, Jim Baker kirjoitti:
I have never used pawt - and I'm don't work with Swing either - but in a cursory glance at the code:
So I see no reason to use pawt, but on the other hand, we wouldn't remove it from Jython until Jython 3.x. It's mostly harmless :) - we just need to do a better job of deprecating its use. Hopefully this is a start.

It would seem better to use Alex Grönholm's package, http://pypi.python.org/pypi/jython-swingutils/ - Alex may describe it as pre-alpha, but I believe he's using it in his own work quite successfully, and I like the code. In particular, it has extensive testing. But it needs real Swing users, not me, to help further vet it.
Thanks. Indeed, some input from actual Swing users would mean a great deal for this project, as I'm sometimes unsure how far I should go with it.

- Jim

On Thu, Dec 10, 2009 at 9:45 AM, Phillip Decker <dec_ibmid@glasswinter.com> wrote:
> 2009/12/10 Marcos Sánchez Provencio <msanchez@grupoburke.com>:
> Strange...
>
> Anyway, Lib/pawt/swing.py does some magic that you may not need. In
> fact, if you change the first line of Demo/swing/Styles.py to:
> from javax.swing.text import StyleContext, StyleConstants, TabSet,
> TabStop
> your test does work.
>
> El mié, 09-12-2009 a las 19:32 -0700, Phillip Decker escribió:
>> java -Dpython.cachedir.skip=true -jar jython.jar demo\swing\Console.py
>

 Marcos -

     Excellent, you're correct, changing the import code in Styles to
 avoid pawt fixes the problem.

     Hmm... is there a bug then in the pawt code?

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users



--
Jim Baker
jbaker@zyasoft.com
------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev
_______________________________________________ Jython-users mailing list Jython-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jython-users