Skip to content

setFont()

Set the list's Font.

Parameters

Once an object dropdown has been created, you can use the following functions:

dropdown.setFont(font)
dropdown.setFont(font, resize)
Parameter Type Default Description
font Font required The new font, for example Font("Serif", Font.ITALIC, 16).
resize bool True True to refit the list to its longest item in the new font, or False to keep its current size.