Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
A soft, round animal that lives in AmoebaWorld

Attributes:
    size: radius in hash marks
    color1 = color of the cell
    color2 = color of the nucleus

src/s/w/swampy-2.1.7/swampy/AmoebaWorld_test.py   swampy(Download)
    def test_amoeba_world(self):
        aw = AmoebaWorld.AmoebaWorld(interactive=True)
        a = AmoebaWorld.Amoeba()
        aw.set_end_time('3.14')
        aw.set_x_t('2*t')
    def test_amoeba(self):
        aw = AmoebaWorld.AmoebaWorld()
        a = AmoebaWorld.Amoeba()
        a.draw()
        a.move(2, 3)