I am trying to get rounded buttons for my script using tkinter.
I found the following code:
from tkinter import *
import tkinter as tk
class CustomButto
You need to create root window first (or some other widget) and give it to your CustomButton together with different parameters (see definition of __init__ method).
Try instead of app = CustomButton() the following:
app = tk.Tk()
button = CustomButton(app, 100, 25, 'red')
button.pack()
app.mainloop()