title: python tkinter: how to work with pixels?
body: <p>using google (and this site) i have seen some similar questions but my problem is still here:</p>
  
  <p>"i want to draw an image (without reading a file) , being able to manipulate every single pixel's colour in that image."</p>
  
  <p>i have seen another question where was suggested to do something like this:</p>
  
  <pre><code>from tkinter import *
  A=Tk()
  B=Canvas(A)
  B.place(x=0,y=0,height=256,width=256)
  for a in range(256):
      for b in range(256):
          B.create_line(a,b,a+1,b+1,fill=pyList[a][b])#where pyList is a matrix of hexadecimal strings
  A.geometry("256x256")
  mainloop()
  </code></pre>
  
  <p>in fact this answers my question but... it is extremely slow.
  what should i do with a 1920x1080 image ? wait for my death?</p>
  
  <p>so i am asking something to perform the same as the above code but in a faster way </p>
  
  <p>i have found a way to improve the method suggested by jsbueno , it is explained in the page linked :</p>
  
  <p><a href="https://stackoverflow.com/questions/10417524/why-is-photoimage-put-slow">Why is Photoimage put slow?</a></p>