jython and graphics2d
Samuele Pedroni
pedronis at bluewin.ch
Fri Dec 13 13:20:08 EST 2002
"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.
More information about the Python-list
mailing list