In Java you have annonymous inner classes, such as:
tf = new TextField ();
tf.addTextListener (
new TextListener () {
// This interface has only one method.
public void textValueChanged (TextEvent t)
{
// do whatever
}
}
);
What would be the best/simplest way to code this in jython?
|