File: sheet.e

package info (click to toggle)
entity 0.7.2-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,352 kB
  • ctags: 5,272
  • sloc: ansic: 61,707; sh: 7,921; makefile: 732; perl: 399
file content (25 lines) | stat: -rwxr-xr-x 596 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/env entity

<object>
  <window 
	width="400"
	height="300"
	ondelete="entity:exit">
    <scrollwindow expand="true">
      <sheet name="hi" cols="40" rows="50" onenter="doit_2">
        <sh-cell name="3,2" row="3" col="2" text="hello" onenter="doit"/>
        <sh-cell name="4,2" row="4" col="2" text="hello"/>
      </sheet>
    </scrollwindow>
    <button onclick="show_value" label="show 3,2" />
  </window>

  <perl><![CDATA[
  sub show_value
  {
    my $node = enode ("sh-cell.3,2");
    my $value = $node->attrib("text");
    print "value = $value\n";
  }
  ]]></perl>
</object>