GUIKit`
GUIKit`

Script

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

Script[scriptcode]

defines a script to be used either on load or during an event.

更多信息和选项

  • To use Script, you first need to load GUIKit using Needs["GUIKit`"].
  • Script is used to associate scripting code either as general code to be executed when the widget definition is read in or as code bound to a specific event, to be executed each time the event occurs within a BindEvent expression.
  • By default, the language of a Script is Wolfram Language code unless an alternate language is specified. You can use Language -> "xml" to specify that the content of the Script is a string of GUIKitXML.
  • Script is HoldAllComplete so that evaluation does not occur when processing Script blocks.
  • The following options can be given:
  • LanguageAutomaticthe language the script code is written in
    ScriptSourceNonean external file that contains the script code

范例

基本范例  (1)

Define a function to be called whenever a button's "action" event occurs:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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