Windows and Widgets
Classes
- class keysight.ads.de.app.Button
Bases:
WidgetA button.
- __init__(label: str, callback: Callable[[], None], parent: Widget | None = None, name: str | None = None)
Create a button.
- Parameters:
label (str) – The label to display on the button
callback (function) – A function to be called when the button is pressed function()
parent (Widget) – The parent widget
name (str) – The name of the button, to later recall it
Example
>>> btn = Button('Press Me!', lambda:print('Button pressed'))
- property is_managed: bool
- property name: str
- class keysight.ads.de.app.Dialog
A dialog.
- __init__(parent_window: Window | None = None, name: str | None = None)
Create a dialog.
- Parameters:
parent_window (Window) – The parent window.
name (str) – The name of the dialog, to later recall it
Example
>>> dlg = Dialog(ui.main_window()) ... dlg.manage()
>>> dlg = Dialog() ... dlg.manage()
- property is_managed: bool
- manage() None
- property name: str
- unmanage() None
- class keysight.ads.de.app.Widget
- class keysight.ads.de.app.Window
- is_valid() bool
- show() None
- property title: str
- property window_definition: WindowDefinition
- property window_type: WindowType
Enumerated Types
Functions
- keysight.ads.de.app.current_window_definition() WindowDefinition | None
- keysight.ads.de.app.window_definition_by_type(win_type: int) WindowDefinition | None