add_combobox#
- CommonWindowUtils.add_combobox(layout, height=40, width=None, label='label1', combobox_list=None, font_size=12)[source]#
Adds a label and combobox to a layout.
- Parameters:
- layout: QLayout
The layout object to which the label and combobox will be added.
- height: int, optional
The height of the label and combobox widgets. Default is 40.
- width: list, optional
The width of the label and combobox widgets. If not provided, a default width of [100, 100] will be used.
- label: str, optional
The text to be displayed on the label widget. Default is ‘label1’.
- combobox_list: list, optional
A list of items to be displayed in the combobox. If not provided, a default list of [‘1’, ‘2’] will be used.
- font_size: int, optional
The font size of the label widget. Default is 12.
- Returns:
list
A list containing the layout row object, label object, and combobox object.