CloseGUIObject

The functionality provided by GUIKit has been superseded by the interface construction and controls functions native to the built-in Wolfram Language.

CloseGUIObject[interface]

closes a live GUIObject instance.

CloseGUIObject[]

requests that an interface close when called within a Script block.

Details

  • To use CloseGUIObject, you first need to load GUIKit using Needs["GUIKit`"].
  • CloseGUIObject programmatically initiates a close action (which is normally initiated interactively by user actions such as closing the window).
  • CloseGUIObject will not necessarily force the removal of all interface resources (like ReleaseGUIObject) if an initial GUIRun has requested that the interface live on past its closing by using the option ReleaseMethod -> Manual.
  • Use CloseGUIObject instead of ReleaseGUIObject to ensure the original life cycle intent of a GUIRun call.

Examples

open allclose all

Basic Examples  (1)

In[1]:=
Click for copyable input

Create a live interface object:

In[2]:=
Click for copyable input
Out[2]=

Verify that the interface is active:

In[3]:=
Click for copyable input
Out[3]=

Request that the window close:

In[4]:=
Click for copyable input

Confirm that the interface is no longer valid:

In[5]:=
Click for copyable input
Out[5]=

Scope  (1)

See Also

GUIObject  GUIRun  ReleaseGUIObject

Tutorials