system.gui.getWindowNames

Description

Returns a list of the paths of all windows in the current project, sorted alphabetically.

Syntax

system.gui. getWindowNames()

  • Parameters

None

  • Returns

PyTuple - A tuple of strings, representing the path of each window defined in the current project.

  • Scope

Client

Code Examples
Code Snippet
#This example would open windows that begin with "Motor" and pass in the currently selected motor number.
motor = event.source.parent.number
windows = system.gui.getWindowNames()
for path in windows:
if name[:5] == "Motor":
system.gui.openWindow(path, {"motorNumber":motor})