title: Buttons won't work on Tkinter
body: <p>I've been working with Tkinter for a week or two now and I've had no problems using buttons. But with this project, my script works fine until I add a button, then it won't run anymore. Can someone help me fiture this out. Thanks a lot in advance. </p>
  
  <pre><code>from sys import argv
  from Tkinter import *
  from PIL import Image, ImageTk, ImageFilter
  import random
  
  script, infile = argv
  
  class MyApp(object):
      def __init__(self):
          self.root = Tk()
          self.root.wm_title("ImagePro")
          Button(self.root, text ="ASdf").pack()
  
  
          #Original
          original = Image.open(infile)
          (w, h) = (original.size[0], original.size[1])
          tkpi = ImageTk.PhotoImage(original)
          label = Label(self.root, image=tkpi)
          label.grid(row =0, column=0, padx=5,pady=5)
  
          img = original.copy()
          pixels = img.load()
          for x in range(w):
              for y in range(h):
                  pixels[x,y]= 22
          tkpi2 = ImageTk.PhotoImage(img)
          label = Label(self.root, image=tkpi2)
          label.grid(row =0, column=1, padx=5,pady=5)
  
  
  
          self.root.mainloop()
  
  
  MyApp()
  </code></pre>