def paint(self, *args):
        totalWidth = self.canvas.winfo_width()
        width = int(self.fraction * float(totalWidth))
        height = self.canvas.winfo_height()
        if self.rect is not None: self.canvas.delete(self.rect)
        if self.text is not None: self.canvas.delete(self.text)
        self.rect = self.canvas.create_rectangle(0, 0, width, height,
                                                 fill=self.color)
        percentString = "%3.0f%%" % (100.0 * self.fraction)
        self.text = self.canvas.create_text(2/totalWidth, height/2,
                                            anchor=tk.CENTER,
                                            text=percentString)
dataset/ETHPy150Open radekstepan/FlaskBudget/tests_gui.py/ProgressBar.paint/swapped operands of `/`