def __init__( self, parent, height=30 ):
        """
        Initializes this ProgressMeter
        
        Arguments:
          parent:   The master widget for this ProgressMeter
          height:   The desired height of the progress bar
        """
        self.parent = parent
        Frame.__init__( self, parent )
        self.columnconfigure( 0, weight=1 )                                     # Forces the canv object to resize any time this widget is resized 
        self.rowconfigure( 0, weight=1 )
        self.statusMessage = 'Normal'
        self.w = 0
        self.h = 0
        self.canv = Canvas( self, height=height)                                # This canvas will display the progress bar and accompanying percentage text
        self.canv.grid( row=1, column=0, sticky=N+S+E+W )
        self.canv.bind( '<Configure>', lambda e:
                        self.resize( e.width, e.height ) )                      # When the canvas is resized the progress bar should be redrawn.
        self.killVar = IntVar()                                                 # The killBtn can cancel execution
        self.killVar.set( 0 )
        self.killBtn = Button( self, text='Cancel',
                               command=lambda: self.killVar.set(1) )
        self.killBtn.configure( state=DISABLED )
        self.killBtn.grid( row=1, column=1 )
        self.targetGen = None                                                   # Placekeeper for the generator function that will be metered
        self.targetArgs = []                                                    # Argument list for the generator function
        self.targetKwds = {}                                                    # Keyword dictionary for the generator funciton
        self.targetIdx = 0                                                      # Keeps track of which step in iteration is currently being executed
        self.targetLen = 0                                                      # Total number of steps in exectuion

        Initializes this ProgressMeter
        
        Arguments:
          parent:   The master widget for this ProgressMeter
          height:   The desired height of the progress bar
        
recipes/Python/576674_StatusMeter_widget_for_Tkinter/recipe-576674.py