Rounded button tkinter python

前端 未结 4 959
无人共我
无人共我 2021-02-13 03:23

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         


        
4条回答
  •  迷失自我
    2021-02-13 03:54

    You are not passing any arguments to the constructor.

    Precisely, in this line

    app = CustomButton()
    

    you need to pass the arguments that were defined in the constructor definition, namely the parent, width, height and color.

提交回复
热议问题