#!/usr/bin/env entity sub scrolltest{ my $node = @_; ##print "$path\n"; # $path = Entity::find ("/", "scrollwindow.sc1"); $sw = enode("scrollwindow.sc1"); # Entity::set_attr ($path, "x-scroll", "100"); } sub xscrolled{ my ( $node ) = @_; #print "$path\n"; # $text = Entity::get_attr ($path, "x-scroll"); $text = $node->attrib("x-scroll"); print "x = $text\n"; } sub yscrolled{ my ( $node ) = @_; #print "$path\n"; # $text = Entity::get_attr ($path, "y-scroll"); $text = $node->attrib("y-scroll"); print "y = $text\n"; }