title: Tkinter Canvas Flicker
body: <p>I'm drawing small black and white video frames to a Tkinter canvas using this code (at 10Hz)</p>
  
  <pre><code>self.image.buf = bytearray(header.width * header.height);
  self.image.buf[:] = image
  self.image.im = Image.frombuffer("L", (header.width, header.height), self.image.buf).resize((320, 240)).transpose(Image.ROTATE_180)
  self.image.tkimage = ImageTk.PhotoImage(self.image.im)
  if (self.image.id): self.image.delete(self.image.id);
  self.image.id = self.image.create_image((0, 0), image=self.image.tkimage, anchor=NW)
  </code></pre>
  
  <p>Everytime a frame gets drawn, the widget flickers. Isn't the Tk canvas supposed to be double buffered? what can I do to avoid this?</p>