fusion_addin_framework.Dropdown

class fusion_addin_framework.Dropdown(parent: Optional[Union[fusion_addin_framework.wrapper.Panel, fusion_addin_framework.wrapper.Dropdown]] = None, id: str = 'random', text: str = 'random', resourceFolder: str = 'lightbulb', positionID: str = '', isBefore: str = True, isVisible: bool = True)

Wraps around Fusions Dropdown object. Besides the documented attributes and methods on this page all attributes and methods of the wrapped class can be accessed with the same attribute and method names as in the wrapped class.

If an Id of an existing Dropdown is provided, all parameters except parent and id will be ignored.

Parameters
  • parent (Union[Dropdown, Panel], optional) – The parent panel or dropdown where this dropdoen is added to. Defaults to None.

  • id (str, optional) – The id of this dropdwown. Defaults to a random id.

  • text (str, optional) – The text displayed for the drop-down in a menu. For a drop-down in a toolbar this argument is ignored because an icon is used. Defaults to a random text.

  • resourceFolder (str, optional) – The resource folder containing the image used for the icon when the drop-down is in a toolbar. Defaults to “lightbulb”.

  • positionID (str, optional) – Specifies the reference id of the control to position this control relative to. Not setting this value indicates that the control will be created at the end of all other controls in toolbar. The isBefore parameter specifies whether to place the control before or after the reference control.

  • isBefore (str, optional) – Specifies whether to place the control before or after the reference control specified by the positionID parameter. This argument is ignored is positionID is not specified. Defaults to True.

  • isVisible (bool, optional) – Sets if this dropdown is currently visible. Defaults to True.

control(*args, **kwargs)

Creates a Control as a child of this workspace.

Calling this method is the same as initialsing a Control with this panel instance as parent parameter. Therefore the same parameters are passed. See Control for a detailed description of the paramters.

Returns

The newly created or accessed Control instance.

Return type

Control

dropdown(*args, **kwargs)

Creates a Dropdown as a child of this panel.

Calling this method is the same as initialsing a Dropdown with this panel instance as parent parameter. Therefore the same parameters are passed. See Dropdown for a detailed description of the paramters.

Returns

The newly created or accessed Dropdown instance.

Return type

Dropdown

Summary

Methods

control(*args, **kwargs)

Creates a Control as a child of this workspace.

dropdown(*args, **kwargs)

Creates a Dropdown as a child of this panel.

Attributes

addin

The addin instance which manages this instance.

parent

The parent wrapper-instance of this wrapper-instance.

uiLevel

The level this instance is in the user interface hierachy.