(self, *args, **kwargs)
| 435 | the given colour.""" |
| 436 | |
| 437 | def __init__(self, *args, **kwargs): |
| 438 | tk.Frame.__init__(self, *args, **kwargs) |
| 439 | self.canvas = tk.Canvas(self, height='20', width='60', |
| 440 | background='white', borderwidth=3) |
| 441 | self.canvas.pack(fill=tk.X, expand=1) |
| 442 | self.rect = self.text = None |
| 443 | self.canvas.bind('<Configure>', self.paint) |
| 444 | self.setProgressFraction(0.0) |
| 445 | |
| 446 | def setProgressFraction(self, fraction, color='blue'): |
| 447 | self.fraction = fraction |
no test coverage detected