Comment detail

ウィンドウの表示 (Nested Flatten)
erl -noshell -s hellogui hello
のように実行します.

Erlangの標準GUIツールのgsは日本語未対応のようです.
文字化けするので,タイトルは英語版で…
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
-module(hellogui).
-export([hello/0]).

hello() -> 
	GS = gs:start(),
	Win = gs:create(window, GS, [{width, 200}, {height, 75}, {title, "Hello, GUI!"}]),
	gs:config(Win, {map, true}),
	event_loop(Win). 

event_loop(Win) ->
	receive
		_Any -> event_loop(Win)
	end.

Index

Feed

Other

Link

Pathtraq

loading...