Search

User Manual

GETTING STARTED


MODULES AND PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


GLOSSARY


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support
SDK Documentation
SDK Examples

ALL MANUAL VERSIONS

Ignition 8
Ignition 7.9
Ignition 7.8

Deprecated Pages

Skip to end of metadata
Go to start of metadata

This function is used in Python Scripting.

Description

Given a window path, or a reference to a window itself, it will close the window. If the window can't be found, this function will do nothing.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.nav.closeWindow(window)

  • Parameters

FPMIWindow window - A reference to the window to close.

  • Returns

nothing

  • Scope

Vision Client

Syntax

system.nav.closeWindow(windowPath)

  • Parameters

String windowPath - The path of a window to close.

  • Returns

nothing

  • Scope

Vision Client

Code Examples
Code Snippet
# This example would get the window named 'Overview' and then close it.
# If the window isn't open, show a warning
try:
   window = system.gui.getWindow('Overview')
   system.nav.closeWindow(window)
except ValueError:
   system.gui.warningBox("The Overview window isn't open")
Code Snippet
# This example would close the window named 'Overview' in one step.
# If the window isn't open, the call to closeWindow will have no effect
system.nav.closeWindow('Overview')
Keywords

system nav closeWindow, nav.closeWindow 

  • No labels