def draw(self): global startTime motherboard.setPenRadius(.005) motherboard.setPenColor(motherboard.DARK_GRAY) motherboard.rectangle(self.xpos, self.ypos, self.width, self.height) motherboard.rectangle(self.xpos, self.ypos, self.width, self.innerheight) #yellow status motherboard.setPenColor(motherboard.CUP_YELLOW) motherboard.filledCircle(self.xpos, self.ypos + self.height - (self.height - self.innerheight)/2 , 20) motherboard.setPenColor(motherboard.DARK_GRAY) #red status motherboard.setPenColor(motherboard.CUP_RED) motherboard.filledCircle(self.xpos - 2*self.width/3, self.ypos + self.height - (self.height - self.innerheight)/2 , 20) motherboard.setPenColor(motherboard.DARK_GRAY) #green status motherboard.setPenColor(motherboard.CUP_GREEN) motherboard.filledCircle(self.xpos + 2*self.width/3, self.ypos + self.height - (self.height - self.innerheight)/2 , 20) motherboard.setPenColor(motherboard.DARK_GRAY) #outlines of circles motherboard.setPenRadius(0.004) motherboard.circle(self.xpos, self.ypos + self.height - (self.height - self.innerheight)/2 , 21) motherboard.circle(self.xpos + 2*self.width/3, self.ypos + self.height - (self.height - self.innerheight)/2 , 21) motherboard.circle(self.xpos - 2*self.width/3, self.ypos + self.height - (self.height - self.innerheight)/2 , 21)
#rows motherboard.line(smallX-100, smallY, smallX+100, smallY) motherboard.line(smallX-100, smallY-50, smallX+98, smallY-50) motherboard.line(smallX-100, smallY+50, smallX+98, smallY+50) #------------------------------------------------------------------- # Circle Table # #------------------------------------------------------------------- #circle circleX = 200 circleY = 260 motherboard.setPenRadius(0.005) motherboard.circle(circleX, circleY, 182) motherboard.rectangle(circleX, circleY, 100, 150) motherboard.rectangle(circleX, circleY, 100, 110) #center line motherboard.setPenRadius(0.002) motherboard.line(circleX, circleY+110, circleX, circleY-108) #rows motherboard.line(circleX-100, circleY, circleX+98, circleY) motherboard.line(circleX-100, circleY-55, circleX+98, circleY-55) motherboard.line(circleX-100, circleY+55, circleX+98, circleY+55) #------------------------------------------------------------------- # Cup panel for the large rectangle # #-------------------------------------------------------------------