jython and showDocument problem
courtemanche
julien.courtemanche at telintrans.fr
Wed Mar 5 10:30:28 EST 2003
Hello,
this sample of code doesn't work, I have already testing with :
applet.AppletContext.showDocument...
from java import awt, applet
class digen200(applet.Applet):
def __init__(self):
self.b1 = awt.Button('TEST', actionPerformed=self.requete)
self.add(self.b1)
def requete(self, event):
applet.Applet.getAppletContext(self).showDocument("www.yahoo.fr","_self")
self.b1.label = "impossible de rafraichir"
sys.exit(1)
if __name__ == '__main__':
import pawt
pawt.test(digen200())
is someone hava clue ?
More information about the Python-list
mailing list