summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_connect.js
blob: fbd0aae49ce456aaada6887f0169720e660d8872 (plain)
1
2
3
4
5
6
7
8
9
10
11
var box = new TQHBox( 'tree_view' );
box.margin = 6;

var led = new KLed( box );

var btn = new TQCheckBox(box);
btn.text = 'Light'

btn.connect( 'toggled(bool)', led, 'toggle()' );

box.show();