title: Background image tkinter
body: <p>I'm trying to get this photo to appear in the background of my window. Its just showing the text at the bottom of the screen and there is no image. Please help.</p>
  
  <p>edit: for some reason my code isn't being formatted </p>
  
  <pre><code>import tkinter as ttk
  from datetime import datetime
  
  root = ttk.Tk()
  root.geometry("800x600")
  
  # -------------get date information---------- #
  
  now = datetime.now()
  dt_string = now.strftime("%m/%y")
  
  # ------------build window ------------------#
  background_image = ttk.PhotoImage("D:\\Programing\\BG_sky1.png")
  backgrond_label = ttk.Label(root, image=background_image)
  backgrond_label.pack(side='top', fill='both', expand='yes')
  
  w = ttk.Label(root, text=dt_string)
  w.pack()
  
  root.mainloop()
  </code></pre>