CButton - Dliammc/CustomPyQt GitHub Wiki

Example

def button_click():
    return "Button Clicked!"

button = CButton(app, text="CButton", command=button_click)

Arguments

Argument Value
master self, Any PySide Qt Widget or PyCt Widget
width integer, width in pixels
height integer, height in pixels
text string, text
tooltip string, tooltip
icon string, image folder path
icon_size tuple: (image width, image height), image size in pixels
font_family string, font
font_size integer, font size in pixels
font_style string, font style
border_width integer, border width in pixels
corner_radius integer, corner radius in pixels
text_color tuple: ("light color", "dark color") or single color, text color
background_color tuple: ("light color", "dark color") or single color, background color
border_color tuple: ("light color", "dark color") or single color, border color
hover_color tuple: ("light color", "dark color") or single color, hover color
pressed_color tuple: ("light color", "dark color") or single color, pressed color
disabled_text_color tuple: ("light color", "dark color") or single color, disabled text color
disabled_background_color tuple: ("light color", "dark color") or single color, disabled background color