mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
22 lines
464 B
Python
22 lines
464 B
Python
import PikaStdLib
|
|
import Arm2D
|
|
|
|
mem = PikaStdLib.MemChecker()
|
|
mem.max()
|
|
win = Arm2D.Window()
|
|
win.init()
|
|
win.background.setColor('white')
|
|
win.elems.box = Arm2D.Box()
|
|
win.elems.box.init()
|
|
while True:
|
|
win.elems.box.move(20, 20)
|
|
win.elems.box.setColor('green')
|
|
win.update()
|
|
win.elems.box.move(30, 50)
|
|
win.elems.box.setColor('blue')
|
|
win.update()
|
|
win.elems.box.move(50,30)
|
|
win.elems.box.setColor('red')
|
|
win.update()
|
|
mem.max()
|
|
|