title: How to reconfigure tkinter canvas items?
body: <p>I don't know if this question has duplicates , but i haven't found one yet.</p>
  
  <p>when using python you can create GUI fastly , but sometimes you cannot find a method to do what you want. for example i have the following problem:</p>
  
  <p>let's suppose that there is a canvas called K with a rectangle with ID=1(canvas item id , not memory id) in it.</p>
  
  <p>if i want to redraw the item i can delete it and then redraw it with new settings.</p>
  
  <pre><code>K.delete(1)
  K.create_rectangle(x1,y1,x2,y2,options...)
  </code></pre>
  
  <p>here is the problem:the object id changes; how can i redraw or move or resize the rectangle or simply change it without changing its id with a method?for example:</p>
  
  <pre><code>K.foo(1,options....)
  </code></pre>
  
  <p>if there isn't such a method , then i should create a list with the canvas object ids , but it is not elegant and not fast.for example:</p>
  
  <pre><code>ItemIds=[None,None,etc...]
  ItemIds[0]=K.create_rectangle(old options...)
  K.delete(ItemIds[0])
  ItemIds[0]=K.create_rectangle(new options...)
  </code></pre>