D3PLOT 22.1
Accessing the Widget Objects
Accessing the Widget objects
Similarly, each Widget object is a property of the Window object. The name of the Widget property is whatever was defined in the properties window in the GUI builder.

For example if the window is called and the widget is called , the Widget object can be accessed and modified with.
var btn = gui.my_window.btnExample;
btn.text = Test;