示例#1
0
文件: pulse.py 项目: antoinevg/phail
 def __init__(self, x, y, label = 'Pulse', target = None, num_particles = 10):
   Button.__init__(self, x, y, label, target)
   Process.__init__(self, x, y, Button.size, Button.size)
   
   self.num_particles = num_particles
   self.add_particles = 0
   self.skip_count = 0
   self.speed = 2
示例#2
0
文件: pulse.py 项目: antoinevg/phail
 def draw(self, canvas):
   Button.draw(self, canvas)
   Plato.draw(self, canvas) # for decorations