GUIKit`
GUIKit`

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.

更多信息和选项

  • 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.

范例

打开所有单元关闭所有单元

基本范例  (1)

Create a live interface object:

Verify that the interface is active:

Request that the window close:

Confirm that the interface is no longer valid:

Scope  (1)

Create an interface that stays active after being closed:

Request that the window close:

Verify that the interface is still active:

Force complete termination of the interface:

Verify that the interface is no longer active:

Wolfram Research (2007),CloseGUIObject,Wolfram 语言函数,https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html.

文本

Wolfram Research (2007),CloseGUIObject,Wolfram 语言函数,https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html.

CMS

Wolfram 语言. 2007. "CloseGUIObject." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html.

APA

Wolfram 语言. (2007). CloseGUIObject. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html 年

BibTeX

@misc{reference.wolfram_2024_closeguiobject, author="Wolfram Research", title="{CloseGUIObject}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_closeguiobject, organization={Wolfram Research}, title={CloseGUIObject}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/CloseGUIObject.html}, note=[Accessed: 18-November-2024 ]}