CComboBox - Dliammc/CustomPyQt GitHub Wiki

Example


combobox = CComboBox(app, values=["One", "Two", "Three"], current_value="CComboBox")

Arguments

Argument Value
master self, Any PySide Qt Widget or PyCt Widget
width integer, width in pixels
height integer, height in pixels
values list: [string, string, ...], menu item's text values
current_value string, default menu value or text value when there is no menu items
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
menu_border_width integer, menu border width in pixels
item_border_width integer, menu item 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
menu_background_color tuple: ("light color", "dark color") or single color, menu background color
menu_border_color tuple: ("light color", "dark color") or single color, menu border color
item_background_color tuple: ("light color", "dark color") or single color, menu item background color
item_border_color tuple: ("light color", "dark color") or single color, menu item border color
hover_color tuple: ("light color", "dark color") or single color, menu item hover 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