ClausTk Documentation

ClausRoundedButton

				
def click_btn():
    print("Merry Christmas!")

rounded_button = claustk.ClausRoundedButton(root, text="Click Me!", command=click_btn)
rounded_button.pack(padx=10, pady=10)
				
			
Argument Description
width int value in px, for example, width=250
height int value in px, for example, height=50
text str, text for button
font int (for example, font=20) or tuple (for example, font=("Arial", 20))
radius radius of rounding, int value
bg_color str, button background color, for example bg_color="red" or bg_color="#f0f0f0"
fg_color str, button text color
command button command
cursor str, button cursor, by default cursor="hand2"

Methods