UnsetWidgetReference[name]
removes a widget from the registry with a name in the current interface.
UnsetWidgetReference
UnsetWidgetReference[name]
removes a widget from the registry with a name in the current interface.
范例
基本范例 (1)
Needs["GUIKit`"]ref = GUIRun[
Widget["Panel", {
Widget["Label", {"text" -> "Hello World!"}, Name -> "myLabel"]
} ]
]WidgetReference allows you to use a name to access the underlying object:
obj = ref @ WidgetReference["myLabel"]This removes the name for the widget:
ref@UnsetWidgetReference["myLabel"]Now there are no named widgets:
"WidgetNames" /. GUIInformation[ref]技术笔记
相关指南
文本
Wolfram Research (2007),UnsetWidgetReference,Wolfram 语言函数,https://reference.wolfram.com/language/GUIKit/ref/UnsetWidgetReference.html.
CMS
Wolfram 语言. 2007. "UnsetWidgetReference." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/UnsetWidgetReference.html.
APA
Wolfram 语言. (2007). UnsetWidgetReference. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GUIKit/ref/UnsetWidgetReference.html 年
BibTeX
@misc{reference.wolfram_2026_unsetwidgetreference, author="Wolfram Research", title="{UnsetWidgetReference}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/UnsetWidgetReference.html}", note=[Accessed: 14-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_unsetwidgetreference, organization={Wolfram Research}, title={UnsetWidgetReference}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/UnsetWidgetReference.html}, note=[Accessed: 14-August-2026]}