You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kjsembed/tests/test_connectsignal.js

15 lines
319 B

var box = new TQHBox( 'tree_view' );
box.margin = 6;
var led = new KLed( box );
var check = new TQCheckBox(box);
var check2 = new TQCheckBox(box);
check.text = 'Light';
check2.text = 'Bounce';
check.connect( 'toggled(bool)', led, 'toggle()' );
check2.connect( 'toggled(bool)', check, 'toggled(bool)' );
box.show();