title: Change the font proprietes of a piece of text
body: <p>I'm making a notepad and I've created tools for fonts, but this changes the font of all the text, not just the selected piece or the part where you are</p>
  
  <p>The code for all the tools looks like this:</p>
  
  <pre><code>def ng():
      global fn #the font
      global b #Bold variable
  
      b=not b
      if b==True:
          fn.configure(weight="bold")
      if b==False:
          fn.configure(weight="normal")
  
      scroll.config(font=fn)
  </code></pre>
  
  <p>How I do this?</p>