diff options
author | Björn Gustavsson <[email protected]> | 2016-06-27 11:48:03 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-06-27 11:49:57 +0200 |
commit | 6931dce17580d097351dd7be09ce7c9ed3f72827 (patch) | |
tree | 2456845e95ed0112c2f08ed8ab6e867686b91d7a /lib/gs/doc/src/examples/ex3.erl | |
parent | dfccd57cb2b69fc3ab01acd0ccbfc894a8403358 (diff) | |
download | otp-6931dce17580d097351dd7be09ce7c9ed3f72827.tar.gz otp-6931dce17580d097351dd7be09ce7c9ed3f72827.tar.bz2 otp-6931dce17580d097351dd7be09ce7c9ed3f72827.zip |
Remove the gs application
The gs application ws deprecated in R15B01.
Diffstat (limited to 'lib/gs/doc/src/examples/ex3.erl')
-rw-r--r-- | lib/gs/doc/src/examples/ex3.erl | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/gs/doc/src/examples/ex3.erl b/lib/gs/doc/src/examples/ex3.erl deleted file mode 100644 index 486cec0e4e..0000000000 --- a/lib/gs/doc/src/examples/ex3.erl +++ /dev/null @@ -1,23 +0,0 @@ --module(ex3). --copyright('Copyright (c) 1991-97 Ericsson Telecom AB'). --vsn('$Revision: /main/release/2 $ '). - --export([init/0]). - -init() -> - S = gs:start(), - W = gs:create(window,S,[{width,300},{height,200}]), - B1 = gs:create(button,W,[{label, {text,"Button1"}},{y,0}]), - B2 = gs:create(button,W,[{label, {text,"Button2"}},{y,40}]), - gs:config(W, {map,true}), - loop(B1,B2). - -loop(B1,B2) -> - receive - {gs,B1,click,_Data,_Arg} -> % button 1 pressed - io:format("Button 1 pressed!~n",[]), - loop(B1,B2); - {gs,B2,click,_Data,_Arg} -> % button 2 pressed - io:format("Button 2 pressed!~n",[]), - loop(B1,B2) - end. |