Print "wxs_message_box returned this value:"ĭisplay "Return values", WXS_MSG_YES, WXS_MSG_NO,Ī dictionary is an associative array. WXS_STYLE_INFORMATION, WXS_DEFAULT_WINDOW) "This is an example call to wxs_message_box.", "This message box has style WXS_STYLE_INFORMATION.", Print " to wxs_message_box.\", WXS_STYLE_INFORMATION," Print " WXS_STYLE_INFORMATION.\", \"This is an example call" Print "calling wxs_message_box(\"This message box has style" Print "wxs_file_selector returned this value:" "This is an example call to wxs_file_selector.", Print " \"*\", WXS_FILE_OPEN, WXS_DEFAULT_WINDOW)" Print "calling wxs_file_selector(\"This is an example call" Which is one of WXS_MSG_YES, WXS_MSG_NO, WXS_MSG_CANCEL, or Note that wxs_file_selector returns a path to the file.
This example shows how to select a file and display a Opening directories, getting numbers and text, and displaying WxSerpent has some built-in dialog boxes for opening files, Primitives: wxs_file_selector, wxs_message_box Topics: File Open Dialog, File Browser, File Selector, > nil now, b is a different array > a.reverse() -> changing a does not change b You can make a shallow copy of the array using Note that if you assign an array to another variable, a reference to the array isĪssigned, so the variable becomes an alias for the array. You can create arrays with the capacity to expand to a certain You can append data at the end efficiently. Subseq, last, insert, append, unappend, set_len, len, uninsert,Īn array, as in most languages, is a sequence of values.
Parameters Parsing Text Repr vs String Random Numbers and Choices Resizing Windows Slider Static Text Text Input Box Listbox Sorting Strings and Characters Flatten Scrolling ZeroMQ
MIDI Files Multiple Source Files On Quit/Close Open Not here, email the topic to rbd at cs.cmu.edu.Īpplying Functions Arrays Button Characters Classes and Objects Dialog Boxes Dictionaries Editing Hints File Openĭialog Inheritance Interactive Drawing Linear Search Listbox Markov Chain Message Boxes If you are looking for an example of how to do something and it is This guide to the Serpent programming language provides examples of