Current section
Files
Jump to
Current section
Files
src/silk.erl
-module(silk).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([main/0]).
-file("/home/reet/Code/silk/silk/src/silk.gleam", 9).
-spec main() -> nil.
main() ->
wx:new(),
Frame = 'wxFrame':new(
wx:null(),
40,
<<"Hello Gleam"/utf8>>,
[{size, {500, 500}}]
),
View = 'wxWebView':new(Frame, 42),
Sizer = 'wxBoxSizer':new(8),
'wxSizer':add(Sizer, View),
'wxWindow':show(Frame),
_ = 'wxWebView':'loadURL'(View, <<"https://gleam.run"/utf8>>),
gleam_erlang_ffi:sleep_forever().