THIS 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 my_window and the widget is called btnExample, the Widget object can be accessed and modified with.

var btn = gui.my_window.btnExample;

btn.text = Test;