from .View import *
from ..Model.Dot import Dot

class KeyView(View):
<<<<<<< HEAD
    def onInit(self):
        
        self.dotList = [Dot(1.5,2), Dot(3,4), Dot(5,7), Dot(10,15)]
=======
>>>>>>> 0d1939e60273c31489e61bf7c8e06774c35f5e03
    
    def drawBar(self):
        self.drawRect((128,0,0), (0, self.scene.lineY, self.width, 5))

    def onUpdateTime(self, time):
        self.updateDots(self.scene.playTime)

    def setMiddle(self, middle):
        self.middle = middle
        
    def drawDots(self):
        for dot in self.dotList:
            if dot.info != None :
                rect = (0, dot.info[0], self.width, dot.info[1] - dot.info[0])
                self.drawRect((0,0,128), rect)

    def updateDots(self, playtime):
        self.dotList = self.middle.getData(self.pitch)

        
        
            
                


        

@@ -67,176 +67,8 @@
 w):%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A    def onInit(self):%0A        %0A        self.dotList = %5BDot(1.5,2), Dot(3,4), Dot(5,7), Dot(10,15)%5D%0A=======%0A%3E%3E%3E%3E%3E%3E%3E 0d1939e60273c31489e61bf7c8e06774c35f5e03
 %0A   

solve conflict