-
-
Notifications
You must be signed in to change notification settings - Fork 2
incendium.vision.nav.swap_to
César Román edited this page Apr 30, 2024
·
8 revisions
Perform a window swap.
This will swap from the current main screen window to the window specified.
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.
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:
# 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")