Need help?
Ask a question or report a problem on GitHub.
Open an issue
window
The application window. Every Windows application starts by creating one, putting controls inside it, and showing it.
Syntax
Otter
create window into app
Properties
Output
title text The text in the title bar width number Width in pixels height number Height in pixels background color Background color foreground color Default text color spacing number The gap between the controls inside it padding number The space between the edge and the controls
Events
Output
closed runs when the person closes the window
Example
Otter
create window into app title of app is "Notes" width of app is 480 height of app is 240 background of app is "#0f172a" spacing of app is 12 padding of app is 16 create text into note text of note is "Hello from a window" foreground of note is "white" put note in app when app is closed say "Goodbye" . show app
Expected result
A 480 by 240 window titled Notes with a dark background and the words "Hello from a window" in white. Closing it prints Goodbye in the console.
text Layout Events