Mercurial > js4py
view point.py @ 95:95ef8898e43e europython-2011
Add two sample JavaScript files and teaser.tex.
| author | Jonathan Fine <jfine@pytex.org> |
|---|---|
| date | Sat, 02 Jul 2011 22:15:21 +0100 |
| parents | 62b9c15e287f |
| children |
line wrap: on
line source
class Point(object): def __init__(self, x, y): self.x = x self.y = y def move(self, dx, dy): self.x += dx self.y += dy mypoint = Point(2, 3) mypoint.move(1, 1)
