RE: [Jython-users] newbie needs help :-)
by Jeff Emanuel other posts by this author
Oct 14 2003 2:17PM messages near this date
RE: [Jython-users] Concating string and number..
|
[Jython-users] Problem with Jythonc and import
Your java class ldapview has a method "public void ldapview()"
which overloads the implicit no-arg constructor. You probably
intended for that method to be the constructor. Remove the
void.
The jython code is calling the ldapview method, but without
an instance. If you remove the void to make ldapview() a
constructor, your jython code should work.
-----Original Message-----
From: John Taylor [mailto:john@[...].edu]
Sent: Monday, October 13, 2003 2:26 PM
To: jython-users@[...].net
Cc: jft@[...].edu
Subject: [Jython-users] newbie needs help :-)
I am writing my first jython program. I have created a java class and
want to call methods (like it's constructor) from a jython program. This
particular java program uses swing and can run by itself. Ideally, I
want to keep all of the UI code in java since I am using RelativeLayout and
all of the non-UI code in jython.
When I run my runme.py, I get this error:
TypeError: ldapview(): expected 1 args; got 0
What am I doing wrong? The complete code is here:
http://www.fcs.uga.edu/~john/jython/
Any help would be greatly appreciated.
Thanks,
John Taylor
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Jython-users mailing list
Jython-users@[...].net
https://lists.sourceforge.net/lists/listinfo/jython-users
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Jython-users mailing list
Jython-users@[...].net
https://lists.sourceforge.net/lists/listinfo/jython-users
|