File: notebook-layout.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 (51 lines) | stat: -rwxr-xr-x 1,072 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
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
#!/usr/bin/env entity

<object>
 <window border = "15" 
   position = "center"
   ondelete = "entity:exit"
   title = "Some Cool App"
   name="windowone">

   <valign>

     <notebook>

       <notepage title="one">
         <label name="l1" text="text1"/>
         <label name="l2" text="text2"/>
       </notepage>

       <notepage title="two">
         <radio-group>

	   <frame title="These Option">
             <radio><label name="l3" text="text3"/></radio>
             <radio><label name="l4" text="text4"/></radio>
	   </frame>

           <button><label text="try again?"/></button>
	 </radio-group>
       </notepage>

     </notebook>

     <halign>
       <button><label text="ok"/></button>
       <button><label text="cancel"/></button>
     </halign>
   </valign>               

   <perl>
     sub radiotest{
       my $node = @_;
       my $path = $node->path;
       print "$path\n";
       #$radio = Entity::get_attr($path, "value");
       $radio = $node->attrib("value");
       print "$radio is selected\n";
     }
   </perl>

 </window>
</object>