add_textbox#

CommonWindowUtils.add_textbox(layout, height=40, width=None, label='label1', initial_text=None, font_size=12)[source]#

Adds a label and textbox 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”’.

initial_text: str, optional

Text to be displayed in the textbox.

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.