class_docstr: A simple progress bar that shows a percentage progress in
  the given colour.
class_docstr_tok: ["A","simple","progress","bar","that","shows","a","percentage","progress","in","the","given","colour","."]
code: 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(
          totalWidth / 2,
          height / 2,
          anchor=tk.CENTER,
          text=percentString,
      )
  
imports: import sys
  import traceback
  import unittest
  import tkinter
  from tkinter import messagebox
  from tkinter import filedialog
  from tkinter import simpledialog
label_desc: Use image node_id 3 for calling the ProgressBar obj's underlying member method code with example usage: obj.paint() without return types