Hello world/Graphical: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
No edit summary
Line 3,812: Line 3,812:


gtk2.main;</syntaxhighlight>
gtk2.main;</syntaxhighlight>

=={{header|Slope}}==
The gui module is an optional module when you compile the slope interpreter. With the module installed the following will produce a window with the text "Hello, world!" and the title of the window will be "Hello".

<syntaxhighlight lang="slope">
(define gui (gui-create))
(gui-add-window gui "Hello")
(window-set-content
gui
"Hello"
(container
"max"
(widget-make-label "Hello, world!")))
(window-show-and-run gui "Hello")</syntaxhighlight>


=={{header|Smalltalk}}==
=={{header|Smalltalk}}==