aboutsummaryrefslogtreecommitdiffstats
path: root/lib/gs/doc/src/examples/ex1.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-06-29 11:39:25 +0200
committerBjörn Gustavsson <[email protected]>2016-06-29 11:39:25 +0200
commitc9552ed591c4cbb29b48d6faedebd88447888185 (patch)
tree602611acb8fcc81b5a84d7168729b711c3780d8a /lib/gs/doc/src/examples/ex1.erl
parent04e9514bca9434676f6ee9548febb8d4d1a1a847 (diff)
parent6931dce17580d097351dd7be09ce7c9ed3f72827 (diff)
downloadotp-c9552ed591c4cbb29b48d6faedebd88447888185.tar.gz
otp-c9552ed591c4cbb29b48d6faedebd88447888185.tar.bz2
otp-c9552ed591c4cbb29b48d6faedebd88447888185.zip
Merge branch 'bjorn/remove-gs/OTP-13703'
* bjorn/remove-gs/OTP-13703: Remove the gs application
Diffstat (limited to 'lib/gs/doc/src/examples/ex1.erl')
-rw-r--r--lib/gs/doc/src/examples/ex1.erl20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/gs/doc/src/examples/ex1.erl b/lib/gs/doc/src/examples/ex1.erl
deleted file mode 100644
index 8ba353a1d7..0000000000
--- a/lib/gs/doc/src/examples/ex1.erl
+++ /dev/null
@@ -1,20 +0,0 @@
--module(ex1).
--copyright('Copyright (c) 1991-97 Ericsson Telecom AB').
--vsn('$Revision: /main/release/2 $ ').
-
--export([init/0]).
-
-init() ->
- S = gs:start(),
- %% the parent of a top-level window is the gs server
- Win = gs:create(window,S,[{width,200},{height,100}]),
- Butt = gs:create(button,Win,[{label, {text,"Press Me"}}]),
- gs:config(Win, {map,true}),
- loop(Butt).
-
-loop(Butt) ->
- receive
- {gs, Butt, click, Data, Args} ->
- io:format("Hello There~n",[]),
- loop(Butt)
- end.