Next / Previous / Contents / Shipman's homepage

5.10. ScrolledList.append(): Add a line of text

This method appends a new last line to the text in the listbox. The constant tk.END specifies a position just after the last existing line.

scrolledlist.py
    def append(self, text):
        """Append a line to the listbox.
        """
        self.listbox.insert(tk.END, text)