jython and graphics2d
Samuele Pedroni
pedronis at bluewin.ch
Fri Dec 13 13:20:08 EST 2002
More information about the Python-list mailing list
Fri Dec 13 13:20:08 EST 2002
- Previous message (by thread): file-writing:formatting
- Next message (by thread): jython and graphics2d
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"les" <abidnego25 at yahoo.com> ha scritto nel messaggio news:653cf871.0212131052.5bcdc77c at posting.google.com... > hi, > i want to use the java2d api (java.awt.geom.*). > in java the paintcomponent is writen like this > > void paintComponent(Graphics g){ > g2 = (Graphics2D) g; > .. > } > > how do i do this cast in jython? > > ... > def paintComponent(self, graphics): > graphics2d = ...???... graphics2d = graphics no (need for) cast regards.
- Previous message (by thread): file-writing:formatting
- Next message (by thread): jython and graphics2d
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list