title: How to set a tkinter window to a constant size
body: <p>I'm programming a little game with tkinter and briefly, I'm stuck.</p>
  
  <p>I have a kind od starting menu, in which are two buttons and one label.</p>
  
  <p>If I just create the frame everything is fine, it has the size 500x500 pixels</p>
  
  <p>I want the background not to change when I create the buttons and the labe, but it adapts the size whatever I do. Here is my code:</p>
  
  <pre><code>import tkinter as tk
  
  def startgame():
      pass
  
  mw = tk.Tk()              #Here I tried (1)
  mw.title('The game')
  
  back = tk.Frame(master=mw, width=500, height=500, bg='black')
  back.pack()
  
  go = tk.Button(master=back, text='Start Game', bg='black', fg='red',
                       command=lambda:startgame()).pack()
  close = tk.Button(master=back, text='Quit', bg='black', fg='red',
                       command=lambda:quit()).pack()
  info = tk.Label(master=back, text='Made by me!', bg='red',
                           fg='black').pack()
  
  mw.mainloop()
  </code></pre>
  
  <p>I've searched around on stackoverflow and didn't get anything useful!
  I've found just one question a bit similar to mine but the answer didn't work. I tried this:</p>
  
  <p>(1)  mw.resizable(width=False, height=False)</p>
  
  <p>I can't imagine what is the problem, I'm really desperate.</p>