jython applet

Joe Francia usenet at joefrancia.com
Sat Nov 29 02:54:42 EST 2003


jennifer haynes wrote:

> I can't Date() to print out in an applet
> this is what I have
> 
> from java.util import Date
> from java import awt, applet
> from java.lang import String
> 
> class Enhanced(applet.Applet):
>     def paint(self, g):
>  today = Date()
>  g.drawString(today, 10, 30)
> 
> 
> 
> if __name__ == '__main__':
>     import pawt
>     pawt.test(Enhanced())
> 

http://www.catb.org/~esr/faqs/smart-questions.html





More information about the Python-list mailing list