def clear_timeline ( self ) : self . _timeline . delete ( tk . ALL ) self . _canvas_ticks . delete ( tk . ALL )
tkinter python clear canvas
Clear the contents of the TimeLine Canvas
def clear_timeline(self):
        """
        Clear the contents of the TimeLine Canvas

        Does not modify the actual markers dictionary and thus after
        redrawing all markers are visible again.
        """
        self._timeline.delete(tk.ALL)
        self._canvas_ticks.delete(tk.ALL)