incendium.vision.nav.swap_to - ignition-devs/incendium GitHub Wiki
Description
Perform a window swap.
This will swap from the current main screen window to the window specified.
Syntax
incendium.vision.nav.swap_to(path, [params])
Args:
- 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.
Recommendations
None.
Code Examples
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:
# Current main screen (a.k.a. "Maximized window"): 'Path/To/From/Window'
# To: "Path/To/Window"
nav.swap_to("https://github.com/ignition-incendium/incendium/wiki/Window")