title: okay so I created this code to create a GUI but i need to add buttons and when ever i try it creates a new window. what should I do?
body: <p>this is my code so far o cant add buttons with out it creating more windows</p>
  
  <p>////////</p>
  
  <pre><code>#import tkinter
  import tkinter
  #import tkmessagebox(buttons)
  from tkinter import *
  #create a new window
  window = tkinter.Tk()
  #title &lt;------ put it before .mainloop
  window.title("yeahh boiiii")
  #window size
  window.geometry("500x500")
  #set a window icon
  window.iconbitmap('N:\downloads\icon.ico.ico')#&lt;---- 8bit file name
  
  master = Tk()
  
  def callback():
  print ("click!")
  
  
  b = Button(master, text="OK", command=callback)
  b.pack()
  
  
  #draws the window
  window.mainloop()
  </code></pre>
  
  <p>////////</p>
  
  <p>please help</p>