title: How to make a rounded button tkinter?
body: <p>I am trying to get rounded buttons for my script using tkinter.</p>
  <p>I found the following code in an answer to <a href="https://stackoverflow.com/a/19369991/6929343">How to make a Button using the tkinter Canvas widget?</a>:</p>
  <pre><code>from tkinter import *
  import tkinter as tk
  
  class CustomButton(tk.Canvas):
      def __init__(self, parent, width, height, color, command=None):
          tk.Canvas.__init__(self, parent, borderwidth=1, 
              relief=&quot;raised&quot;, highlightthickness=0)
          self.command = command
  
          padding = 4
          id = self.create_oval((padding,padding,
              width+padding, height+padding), outline=color, fill=color)
          (x0,y0,x1,y1)  = self.bbox(&quot;all&quot;)
          width = (x1-x0) + padding
          height = (y1-y0) + padding
          self.configure(width=width, height=height)
          self.bind(&quot;&lt;ButtonPress-1&gt;&quot;, self._on_press)
          self.bind(&quot;&lt;ButtonRelease-1&gt;&quot;, self._on_release)
  
      def _on_press(self, event):
          self.configure(relief=&quot;sunken&quot;)
  
      def _on_release(self, event):
          self.configure(relief=&quot;raised&quot;)
          if self.command is not None:
              self.command()
  app = CustomButton()
  app.mainloop()
  </code></pre>
  <p>but I get the following error:</p>
  <pre><code>TypeError: __init__() missing 4 required positional arguments: 'parent', 'width', 'height', and 'color'
  </code></pre>