title: How to align tkinter widgets?
body: <p>How do I align my <code>Radiobutton</code>s? I can add spaces to <code>test4</code> but that solution doesn't seem proper. Here's what it looks like at the moment—as you can see <code>text111111</code> has extra chars. I've tried using <code>padx</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/5B1Up.png" alt="screenshot of current results"></p>
  
  <p>My code:</p>
  
  <pre><code>from tkinter import *
  
  class GUI:
      def __init__(self, master):
  
          self.iconnum = IntVar()
          self.master = master
          self.master.title('test')
          self.master.resizable(width=False, height=False)
          self.master.maxsize(500, 250)
          self.master.minsize(500, 250)
  
          self.test1 = Radiobutton(master, text="test11111111", variable=self.iconnum,
                                   value=1, )
          self.test2 = Radiobutton(master, text="test2", variable=0, value=2, )
          self.test3 = Radiobutton(master, text="test3", variable=0, value=3, )
          self.test4 = Radiobutton(master, text="test4", variable=0, value=4)
          self.test1.grid(row=2, columnspan=1)
          self.test2.grid(row=2, columnspan=2)
          self.test3.grid(row=2, column=1)
          self.test4.grid(row=3, columnspan=1)
  
          self.Checker = Radiobutton(master, text="test5", indicatoron=0, height=1, width=35,
                                     value=0, command=self.icon_switcher) #var=Selection)
          self.Turbo = Radiobutton(master, text="test6", indicatoron=0, height=1, width=35,
                                   value=1, command=self.icon_switcher) #var#=Selection)
  
          self.Checker.grid(row=1)
          self.Turbo.grid(row=1, column=1,   )
  
      def icon_switcher(self):
          print("Hello")
  
  root = Tk()
  gui = GUI(root)
  
  root.mainloop()
  </code></pre>