-
Notifications
You must be signed in to change notification settings - Fork 3
2017 API dlibrary.vectorworks.AbstractWidget
Dieter Geerts edited this page Sep 24, 2016
·
1 revision
Abstract base class for object info-pallet widgets.
- object The most base type
__init__(self, is_visible: '() -> bool'=None, is_enabled: '() -> bool'=None, on_click: '() -> None'=None)
-
(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.
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.