Skip to content

2017 API dlibrary.vectorworks.StaticTextWidget

Dieter Geerts edited this page Sep 24, 2016 · 1 revision

dlibrary.vectorworks.StaticTextWidget

Represents static text on the object info-pallet.

Base classes

Constructor

__init__(self, label: str, is_visible: '() -> bool'=None, is_enabled: '() -> bool'=None, on_click: '() -> None'=None)

Properties

  • (get) has_custom_enabling -> bool -- Returns whether the widget has an enabled check set.
  • (get) has_custom_visibility -> bool -- Returns whether the widget has a visibility check set.
  • (get) id -> int -- Returns the id that was given while adding it to the OIP.

Methods

add(self, widget_id: int)

Adds the widget to the object info-pallet with the given id.

click(self)

Execute the user's widget click.

update(self)

Update the widget visibility and enabled status.

Home

DLibrary for VW2017

PREVIOUS VERSIONS

Clone this wiki locally