title: Adding to the bottom of a listbox
body: <p>I have this program which emulates a stack, I've used a <code>listbox</code> to represent this, the only problem is when I add the first element, it adds to the top of the <code>listbox</code> rather than the bottom.</p>
  
  <blockquote>
    <p>This is what my program looks like:</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/ZawwF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZawwF.png" alt="enter image description here"></a></p>
  
  <p>The <strong>red</strong> is where the elements are being added, the <strong>green</strong> is where the elements should be added</p>
  
  <p>The function I need to change is <code>Add()</code>, I've added the whole code anyway because there's not a lot and anyone can copy it.</p>
  
  <p>As for the problem, I've tried <code>stack.insert("end", data)</code>, I've tried <code>stack.insert(END, data)</code> but it still adds to the top of the listbox</p>
  
  <blockquote>
    <p>Here's the code</p>
  </blockquote>
  
  <pre><code>from tkinter import *
  
  Window = Tk() # window
  
  Window.geometry("400x200+50+50") # heightxwidth+x+y
  Window.title("Stack Emulator")
  
  mainPanel = Canvas(Window, width = 400, height = 200) # :)
  mainPanel.pack() # :)
  
  global stack
  stack = Listbox(height = 8)
  
  # methods
  def Add(data):
      data = data.get()
      stack.insert(0, data)
      stack.see(0)
  
  def Remove():
      stack.delete(0)
      stack.see(0)
  
  # buttons   
  data = StringVar()
  enter = Entry(width = 10, textvariable = data)
  add = Button(text = "Push", command = lambda *args: Add(data))
  remove = Button(text = "Pop", command = lambda *args: Remove())
  
  # stack
  mainPanel.create_text(100, 20, text = "Stack", font = ("Purisa", 14, "bold"))
  mainPanel.create_window(100, 35, window = stack, anchor = "n")
  mainPanel.create_rectangle(37, 34, 162, 167)
  
  # methods
  mainPanel.create_text(180, 40, text = "Element:", font = ("Purisa", 12), anchor = "nw")
  mainPanel.create_window(250, 40, window = enter, anchor = "nw")
  mainPanel.create_window(180, 60, window = add, anchor = "nw")
  mainPanel.create_window(180, 90, window = remove, anchor = "nw")
  </code></pre>