Window#
- class ansys.stk.core.uicore.Window#
Represents a window abstraction. Provides methods and properties to manipulate the position and the state of the window.
Overview#
Activates the window. |
|
Close the window. |
|
Return a service object that can be accessed at runtime. The method returns null if no service object is associated with the specified symbolic name. |
|
Return a service object that can be accessed at runtime. The method returns null if no service object is associated with the specified service type. |
Get or set the window caption. Can only be set within UI plugins for the non unique windows they own. |
|
The window state. |
|
The window height. |
|
The window width. |
|
The window horizontal position. |
|
The window vertical position. |
|
The window docking style. |
|
Whether to close the window when the application workbook is loaded/closed. |
|
The windowโs pinned state. |
|
Return whether the window supports pinning. |
|
Return the windowโs toolbar collection. |
Import detail#
from ansys.stk.core.uicore import Window
Property detail#
- property Window.caption: str#
Get or set the window caption. Can only be set within UI plugins for the non unique windows they own.
- property Window.window_state: ApplicationWindowState#
The window state.
- property Window.dock_style: WindowDockStyle#
The window docking style.
- property Window.no_workbook_close: bool#
Whether to close the window when the application workbook is loaded/closed.
- property Window.toolbars: ToolbarCollection#
Return the windowโs toolbar collection.
Method detail#
- Window.get_service_by_name(self, name: str) Any #
Return a service object that can be accessed at runtime. The method returns null if no service object is associated with the specified symbolic name.
- Window.get_service_by_type(self, service_type: WindowServiceType) Any #
Return a service object that can be accessed at runtime. The method returns null if no service object is associated with the specified service type.
- Parameters:
service_type :
WindowServiceType
- Returns: