1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
#!/usr/bin/env entity
<object>
<window border = "15"
position = "center"
ondelete = "entity:exit"
title = "Some Cool App"
name="windowone">
<vpane>
<scrollwindow>
<text>This is supposed to be visible</text>
</scrollwindow>
<valign>
<button label="where am i"/>
<button label="still not here buddy"/>
</valign>
</vpane>
<valign>
<vpane>
<halign>
<button><label text="two"/></button>
<button label=" text" onclick="set_label"/>
<checkbox label="label1" ontoggle="set_label"/>
<checkbox label="label2" ontoggle="set_label"/>
<radio-group label="blah">
<radio label="myrlabel"/>
</radio-group>
</halign>
<button><label text="three"/></button>
</vpane>
<hpane>
<halign>
<button><label text="one"/></button>
<button><label text="two"/></button>
</halign>
<button><label text="three"/></button>
</hpane>
</valign>
<perl>
sub set_label
{
my $node = shift;
print "$node\n";
my $text = $node->attrib("label");
$node->attrib("label" => $text.$text);
}
</perl>
</window>
</object>
|