From: Kent Johnson <kent37@td...> - 2004-02-18 15:49:02
FWIW the docs _say_ it supports Jython / Swing.
>>> from anygui import *
So it recognizes that it is running under Jython.
Then I tried your test program with the same result - no window, no return, no error...
> From: Francisco Gutierrez <francisc@...>
> Date: 2004/02/18 Wed AM 10:09:10 EST
> To: Jython-users@...
> Subject: [Jython-users] using anygui in jython
> Has anybody tried using anygui in Jython? If it works it would be very
> cool, since all your gui programs could run in both platforms. I was
> playing last night with it, I got a simple window to display in CPython,
> but I couldn't get it to work in Jython, so I am wondering if it is
> known that it doesn't work with Jython, or if it is just not working for
> me for some reason. It didn't give me any exceptions, or otherwise
> indicated that anything was wrong, but the window just didn't appear.
> Here is the code:
> import anygui as gui
> win=gui.Window(title='hello', size=(300, 200))
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> Jython-users mailing list
From: Francisco Gutierrez <francisc@al...> - 2004-02-18 20:46:55
I appreciate the reply, but the condescending attitude was not really
necessary, I am well aware that Jython and CPython are different, but I
am sure that you are familiar with the concept of abstraction, and the
fact that an interface can be implemented in different platforms.
(Notice the difference in attitude between the previous sentence and the
following: Repeat after me... AN INTERFACE CAN BE IMPLEMENTED IN
DIFFERENT PLATFORMS) As Kent mentioned in his reply, the documentation
of anygui says that it works in jython as well, I was just curious to
see if anybody else had tried to use it, that's all.
Patrick Bielen wrote:
> Hi Francisco,
>>but I couldn't get it to work in Jython
> Well repeat by me... JAVA IS NOT CPYTHON, java/jython runs on a JVM.
> So i'm almost pretty sure that won't work.
> Ya can use, AWT, Swing or even SWT to get your job done,
> and the advantage is, that will run on every JVM, so no
> hassles about the underlying OS.
> Best Regards,
> Sysop/Java-programmer Stafa Holland BV
> Administrator/Programmer Memoranda-project (SourceForge)
> Programmer TN5250J-project (SourceForge)
> Programmer DBPirate-project (Java.net)
At 13:41 18.02.2004 -0700, Francisco Gutierrez wrote:
anygui is alpha software, and yes, it was specifically part of the exercise
to make it work
also on Jython, there are discussion right now on whether/what will
comprise a 0.2 release.
There are better forums to ask anygui questions: