title: Adding buttons in TkInter on pressing button
body: <p>I am having button and on pressing it I want to create new Button and new Label.</p>
  
  <p>Label must have random color and must change it on pressing this button to another random color. </p>
  
  <p>My code even can not add buttons correctly, there is problems with placing new(sizes are strange).
   How can I improve this? And how can I later create func for new buttons which will change their label's colours, cause I dont have label's names.</p>
  
  <pre><code>import random
  from tkinter import *
  
  def color(*args):
      pass
  
  def dump( *args):
      global count
  
      Butt = Button(root, text="color ", command=color)
      Butt.config(width=int(root.winfo_width() / 10), height=int(root.winfo_height() / 10))
      Butt.grid(row=0, column=count)
      Txt = Label(root, text="Color", bg="#" + ("%06x" % random.randint(0, 16777215)))
      Txt.config(width=int(root.winfo_width() / 10), height=int(root.winfo_height() / 10))
      Txt.grid(row=1, column=count)
      count+=1
      root.mainloop()
  
  count=2
  TKroot = Tk()
  TKroot.title("Hello")
  root = Frame(TKroot)
  root.place(relx=0, rely=0, relheight=1, relwidth=1)
  root.columnconfigure(0, weight=10)
  root.columnconfigure(1, weight=10)
  root.rowconfigure(0, weight=10)
  root.rowconfigure(1, weight=10)
  Butt = Button(root, text="Butt ON")
  Butt.bind('&lt;Button-1&gt;', dump)
  Butt.config(width=int(root.winfo_width() / 10), height=int(root.winfo_height() / 10))
  Butt.grid(row=0, column=0)
  Exit = Button(root, text="Quit!", command=root.quit)
  Exit.config(width=int(root.winfo_width() / 10), height=int(root.winfo_height() / 10))
  Exit.grid(row=0, column=1)
  Txt = Label(root, text="This is a label", bg="PeachPuff")
  Txt.grid(row=1, column=1, columnspan=1)
  TKroot.mainloop()
  print("Done")
  </code></pre>