-
-
Notifications
You must be signed in to change notification settings - Fork 2
incendium.vision.nav.swap_windows
César Román edited this page Apr 30, 2024
·
10 revisions
Perform a window swap.
Args:
- from_path (
str
): The path of the window to swap from. - to_path (
str
): The full path or relative path of the window to swap to. - params (dict): A dictionary of parameters to pass into the window. The keys in the dictionary must match dynamic property names on the target window's root container. The values for each key will be used to set those properties. Optional.
None.
This function allows you to swap between two windows by using relative paths, but it also works with full paths.
from incendium.vision import nav
# Windows:
# From: "Path/To/From/Window"
# To: "Path/To/Window"
nav.swap_windows("Path/To/From/Window", "https://github.com/ignition-incendium/incendium/wiki/Window")