title: Tkinter Text Widget to be inside Notebook as resizable/streched/font changable
body: <ol>
  <li>Why I cannot stretch Text widget inside Notebook widget(Tab) with <strong>sticky</strong>?</li>
  <li>How to get fixed Text widget size while changing font, while <strong>grid_propagate</strong> doesn't give results.</li>
  <li>How that same window can again be resizable <strong>(weight)</strong> altogether?</li>
  </ol>
  <p>Thanks</p>
  <pre><code>import tkinter as tk
  from tkinter import *
  from tkinter import ttk, font
  
  
  class TextInsideNotebook:
      def __init__(self, main):
          self.main = main
          self.fontSizePx = -20
  
          # Font
          self.fontspecs = font.Font(family=&quot;consolas&quot;, size=self.fontSizePx)
  
          # Notebook
          self.tab = ttk.Notebook(main, width=800, height=600)
          self.tab.grid(row=0, column=0, sticky=&quot;nsew&quot;)
  
          # Tab
          self.tab_frame = Frame(self.tab)
          self.tab.grid(row=0, column=0, sticky=&quot;nsew&quot;)
          self.tab.add(self.tab_frame, text='  NEW FILE ')
  
          # Text Area
          self.textarea = tk.Text(self.tab_frame, font=self.fontspecs)
  
          self.textarea.grid(row=0, column=0, sticky=&quot;nsew&quot;)
          self.tab_frame.grid_propagate(False)
  
          # weights
          main.columnconfigure(0, weight=1)
          main.rowconfigure(0, weight=1)
  
          # Bind
          self.main.bind('&lt;Control-MouseWheel&gt;', self.new_font_size)
  
      def new_font_size(self, event):
          if event.delta &gt; 0:
              self.fontSizePx = self.fontSizePx - 2
          else:
              self.fontSizePx = self.fontSizePx + 2
  
          self.fontspecs.config(size=self.fontSizePx)
  
  
  if __name__ == &quot;__main__&quot;:
      main = tk.Tk()
      agc = TextInsideNotebook(main)
      main.mainloop()
  </code></pre>