CloseGUIObject

CloseGUIObject[interface]
closes a live GUIObject instance.


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

DetailsDetails

  • To use , you first need to load GUIKit using Needs["GUIKit`"].
  • programmatically initiates a close action (which is normally initiated interactively by user actions such as closing the window).
  • 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 instead of ReleaseGUIObject to ensure the original life cycle intent of a GUIRun call.

ExamplesExamplesopen allclose all

Basic Examples (1)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]=
New to Mathematica? Find your learning path »
Have a question? Ask support »