Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Window-creation/Oz/window-creation.oz
Normal file
18
Task/Window-creation/Oz/window-creation.oz
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
functor
|
||||
import
|
||||
Application
|
||||
QTk at 'x-oz://system/wp/QTk.ozf'
|
||||
define
|
||||
proc {OnClose}
|
||||
{Application.exit 0}
|
||||
end
|
||||
|
||||
%% Descripe the GUI in a declarative style.
|
||||
GUIDescription = td(label(text:"Hello World!")
|
||||
action:OnClose %% Exit app when window closes.
|
||||
)
|
||||
|
||||
%% Create a window object from the description and show it.
|
||||
Window = {QTk.build GUIDescription}
|
||||
{Window show}
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue