home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / python-glade2 / examples / test.glade < prev    next >
Encoding:
Extensible Markup Language  |  2001-11-29  |  4.6 KB  |  128 lines

  1. <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
  2. <!DOCTYPE glade-interface SYSTEM "../glade-2.0.dtd" >
  3.  
  4. <glade-interface>
  5.   <widget class="GtkWindow" id="window1">
  6.     <property name="title" translatable="yes">Testing</property>
  7.     <property name="border_width">10</property>
  8.     <property name="visible">yes</property>
  9.  
  10.     <accessibility>
  11.       <atkproperty name="AtkObject::accessible-name">Test Frame</atkproperty>
  12.       <atkproperty name="AtkObject::accessible-description">
  13.           This is the first of two test windows.
  14.       </atkproperty>
  15.     </accessibility>
  16.  
  17.     <child>
  18.       <widget class="GtkVBox" id="vbox1">
  19.         <property name="spacing">5</property>
  20.         <property name="visible">yes</property>
  21.  
  22.         <child>
  23.           <widget class="GtkLabel" id="label1">
  24.             <property name="label" translatable="yes">A label</property>
  25.             <property name="visible">yes</property>
  26.             <accessibility>
  27.               <atkproperty name="AtkObject::accessible-name">A label</atkproperty>
  28.               <atkrelation target="button1" type="label_for"/>
  29.             </accessibility> 
  30.           </widget>
  31.       <packing>
  32.             <property name="expand">no</property>
  33.       </packing>
  34.         </child>
  35.         <child>
  36.           <widget class="GtkButton" id="button1">
  37.             <property name="tooltip">I am a tooltip</property>
  38.             <property name="visible">yes</property>
  39.  
  40.             <accessibility>
  41.               <atkproperty name="AtkObject::accessible-name">Push Me Button</atkproperty>
  42.               <atkproperty name="AtkObject::accessible-description">
  43.                 This button wants to be pushed.
  44.               </atkproperty>
  45.               <atkaction action_name="click" description="This button
  46. dares you to invoke this action."/>
  47.               <atkaction action_name="press" description="This action
  48. does nothing interesting."/>
  49.               <atkrelation target="label1" type="labelled_by"/>
  50.             </accessibility> 
  51.  
  52.         <signal name="clicked" handler="gtk_main_quit" />
  53.  
  54.             <child>
  55.               <widget class="GtkLabel" id="label2">
  56.                 <property name="label" translatable="yes">_Push me</property>
  57.                 <property name="use_underline">yes</property>
  58.                 <property name="visible">yes</property>
  59.               </widget>
  60.             </child>
  61.           </widget>
  62.         </child>
  63.       </widget>
  64.     </child>
  65.   </widget>
  66.  
  67.   <widget class="GtkDialog" id="dialog1">
  68.     <property name="title" translatable="yes">Testing2</property>
  69.     <property name="border_width">10</property>
  70.     <property name="visible">yes</property>
  71.  
  72.     <accessibility>
  73.       <atkproperty name="AtkObject::accessible-name">Testing 2</atkproperty>
  74.       <atkproperty name="AtkObject::accessible-description">
  75.           This is the second of two test windows, a test dialog box.
  76.       </atkproperty>
  77.     </accessibility>
  78.  
  79.     <child internal-child="vbox">
  80.       <widget class="GtkVBox" id="vbox2">
  81.         <child>
  82.           <widget class="GtkLabel" id="label3">
  83.             <property name="label" translatable="yes">Click the button below</property>
  84.             <property name="visible">yes</property>
  85.             <accessibility>
  86.               <atkrelation target="button2" type="label_for"/>
  87.             </accessibility>
  88.           </widget>
  89.       <packing>
  90.             <property name="expand">yes</property>
  91.       </packing>
  92.         </child>
  93.     <child internal-child="action_area">
  94.       <widget class="GtkHButtonBox" id="buttonbox1">
  95.         <child>
  96.               <widget class="GtkButton" id="button2">
  97.                 <property name="visible">yes</property>
  98.  
  99.                 <accessibility>
  100.                   <atkproperty name="AtkObject::accessible-name">Cancel</atkproperty>
  101.                   <atkproperty name="AtkObject::accessible-description">
  102.                     Another button that does the same as the first one...
  103.                   </atkproperty>
  104.                   <atkaction action_name="click" description="Cancel (and exit) the test."/>
  105.                   <atkaction action_name="press" description="This action
  106. does nothing interesting."/>
  107.                   <atkrelation target="label3" type="labelled_by"/>
  108.                 </accessibility> 
  109.  
  110.             <signal name="clicked" handler="gtk_main_quit" />
  111.  
  112.                 <child>
  113.                   <widget class="GtkLabel" id="label4">
  114.                     <property name="label" translatable="yes">_Cancel</property>
  115.                     <property name="use_underline">yes</property>
  116.                     <property name="visible">yes</property>
  117.                   </widget>
  118.                 </child>
  119.               </widget>
  120.         </child>
  121.       </widget>
  122.     </child>
  123.       </widget>
  124.     </child>
  125.   </widget>
  126. </glade-interface>
  127.  
  128.