<html><body style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 12px;">Dear Erlangers,<br /><br />Reading from the application module;<br /><br />https://erlang.org/doc/man/application.html<br /><br />set_env(Config) -> ok<br /> <br />set_env(Config, Opts) -> ok<br /> <br />Types<br />Config = [{Application, Env}]<br />Application = atom()<br />Env = [{Par :: atom(), Val :: term()}] ...<br /><br />From a wx:demo() example;<br /><br />https://github.com/erlang/otp/blob/master/lib/wx/examples/demo/ex_notebook.erl<br /><br />-module(ex_notebook).<br /><br />-include_lib("wx/include/wx.hrl").<br /><br />-behaviour(wx_object).<br /><br />-export([start/1, init/1, terminate/2, code_change/3,<br /> handle_info/2, handle_call/3, handle_cast/2, handle_event/2])<br /><br />-record(state, <br /> {<br /> parent,<br /> config,<br /> notebook<br /> }).<br /><br />start(Config) -><br /> wx_object:start_link(?MODULE, Config, []).<br /><br />%%<br />init(Config) -><br /> wx:batch(fun() -> do_init(Config) end).<br />do_init(Config) -><br /> Parent = proplists:get_value(parent, Config), ...<br /><br /><br />Between the application module and the wx example above, I doubt this would be the same Config.<br /><br />Could someone kindly post a URL to an example of what Config might be for wx_object?<br /><br />Thank you in advance,<br />Peter<br /><br /><br /></body></html>