title: Change size of frame in tkinter, which is defined by a class
body: <p>I'm trying to change the size of my frames in <a href="/questions/tagged/tkinter" class="post-tag" title="show questions tagged &#39;tkinter&#39;" rel="tag">tkinter</a>; I'm using python 3.0 and I'm creating an inventory management type thing for a school project. This is the code I have right now, and I'm trying to edit the dimensions of the frame. I have tried to look online but found nowhere the information I need. I'm aware that you need to use:</p>
  
  <pre><code>.geomtry()
  </code></pre>
  
  <p>built-in function, but I have no idea where to put it, or how to use it with a class. </p>
  
  <pre><code>                import tkinter as tk
  
              LARGE_FONT= ("Comic Sans MS", 12)
              SMALL_FONT=('Comic sans ms', 8)
  
              class StockManager(tk.Tk):
  
                  def __init__(self, *args, **kwargs):
                      tk.Tk.__init__(self, *args, **kwargs)
                      container = tk.Frame(self)
  
                      container.pack(side="top", fill="both", expand=True)
  
                      container.grid_rowconfigure(0, weight=1)
                      container.grid_columnconfigure(0, weight=1)
  
                      self.frames = {}
  
                      for F in (StartPage, PageOne):
                          frame = F(container, self)
  
                          self.frames[F] = frame
  
                          frame.grid(row=0, column=0, sticky="nsew")
  
  
                      self.show_frame(StartPage)
  
                  def show_frame(self, cont):
                      frame = self.frames[cont]
                      frame.tkraise()
  
  
              class StartPage(tk.Frame):
  
                  def __init__(self, parent, controller):
                      tk.Frame.__init__(self, parent)
  
                      lbl1 = tk.Label(self, text='Welcome to the stock manager', font=LARGE_FONT)
                      lbl1.pack(pady=10, padx=10)
                      lbl2 = tk.Label(self, text='What would you like to do?', font=LARGE_FONT)
                      lbl2.pack(pady=10, padx=10)
  
                      btnShowProducts = tk.Button(self, text='1. Show all products ', font=LARGE_FONT,)
                      btnShowProducts.pack(anchor='w')
  
                      btnSearchProducts = tk.Button(self, text='2. Search for a product ', font=LARGE_FONT)
                      btnSearchProducts.pack(anchor='w')
  
                      btnAddProduct = tk.Button(self, text='3. Add another product ', font=LARGE_FONT)
                      btnAddProduct.pack(anchor='w')
  
                      btnDeleteProduct = tk.Button(self, text='4. Delete a product ', font=LARGE_FONT)
  
                      btnClose = tk.Button(self, text='Close Database ', font=LARGE_FONT)
                      btnClose.pack(anchor='w')
  
                      btnNextPage = tk.Button(self, text='Next Page', font=SMALL_FONT)
                      btnNextPage.pack(anchor='s')
  
  
              class PageOne(tk.Frame):
  
                  def __init__(self, parent, controller):
                      tk.Frame.__init__(self, parent)
                      label = tk.Label(self, text="Page One!!!", font=LARGE_FONT)
                      label.pack(pady=10, padx=10)
  
                      btnAddTrans = tk.Button(self, text='1. Add a new transaction', font=('comic sans ms', 10))  ##CREATE ADD TRANSACTION HERE
  
                      btnShowTrans = tk.Button(self, text='2. Show Transactions', font=('Comic Sans MS', 10))
                      btnShowTrans.pack(anchor='w')
  
                      button1 = tk.Button(self, text="Back to Home")
                      button1.pack()
  
                      button2 = tk.Button(self, text="Next Page")
                      button2.pack()
  
              menu = StockManager()
              menu.mainloop()
  </code></pre>