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