title: python - TKinter - Can I send background to back?
body: <p>I am new to programming and python so I thank you in advance for your patience.</p>
  
  <p>I have created a class which creates a new window with a test image for it's background ("test1.gif").</p>
  
  <p>I have also created a drop down menu within the same class that lets you choose between 3 countries.</p>
  
  <p>I can comment off either the code that makes the background or the code that makes the menu and the other will display. However I want the menu to appear above the background. When I run the full code I only see the background. </p>
  
  <p>I appreciate I am probably missing something very obvious here, if some one could please point out what that is.</p>
  
  <p>Thanks for your time.
  Dan</p>
  
  <pre><code>from Tkinter import *
  import Tkinter as tk
  
  
  
  class dropDown():
  
      def __init__(self, master):
  
  
          #background set_up
          image1 = tk.PhotoImage(file="test1.gif")
          w = image1.width()
          h = image1.height()
          root.geometry("%dx%d+0+0" % (w, h))
          panel1 = tk.Label(root, image=image1)
          panel1.pack(side='top', fill='both', expand='yes')
  
          # save the panel's image from 'garbage collection'
          panel1.image = image1
  
  
          #Drop down menu
          self.var = StringVar(master)
          self.var.set('Alaska') # initial value
  
          #Have not used countries list just pasted
          self.option = OptionMenu(master, self.var, 'Alberta', 'Australia')
          self.option.pack()
  
  
  
  root = Tk()
  root.title('drop down test')
  dropDown(root)
  mainloop()
  </code></pre>