def drawBar( self ):
        """
        Updates the status bar for the percentage of completion.
        """
        pct = self.targetIdx / self.targetLen                                   # The percentage of completion
        x0 = 2                                                                  # The bar is inset by 2 pixels
        x1 = pct * ( self.w - 3 ) + 2
        y0 = 2
        y1 = self.h
        self.canv.delete( 'bar' )
        self.canv.create_rectangle( x0, y0, x1, y1, fill='SteelBlue3',
                                    outline='', tag='bar' )
        self.canv.delete( 'text' )
        pctTxt = '%02.2f%%' % ( pct*100, )
        self.canv.create_text( self.w/2, self.h/2, text=pctTxt,
                               anchor=CENTER, tag='text' )

        Updates the status bar for the percentage of completion.
        
recipes/Python/576674_StatusMeter_widget_for_Tkinter/recipe-576674.py