Advertisement
Mark2020H

Glade file for GTK simple RPI switch

Apr 27th, 2020
630
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Generated with glade 3.20.4 -->
  3. <!-- # ******  Full code and image at https://github.com/markh2016/GTKSingleRPILightSwitch.git ***** -->
  4. <interface>
  5.   <requires lib="gtk+" version="3.20"/>
  6.   <object class="GtkWindow" id="main_window">
  7.     <property name="can_focus">False</property>
  8.     <property name="title" translatable="yes">Light Switch</property>
  9.     <property name="resizable">False</property>
  10.     <property name="modal">True</property>
  11.     <property name="default_width">200</property>
  12.     <property name="default_height">200</property>
  13.     <signal name="destroy" handler="on_main_window_destroy" swapped="no"/>
  14.     <child>
  15.       <object class="GtkBox">
  16.         <property name="visible">True</property>
  17.         <property name="can_focus">False</property>
  18.         <property name="margin_top">10</property>
  19.         <property name="margin_bottom">2</property>
  20.         <property name="orientation">vertical</property>
  21.         <property name="spacing">4</property>
  22.         <child>
  23.           <object class="GtkButton" id="btn1">
  24.             <property name="visible">True</property>
  25.             <property name="can_focus">True</property>
  26.             <property name="receives_default">True</property>
  27.             <property name="margin_top">3</property>
  28.             <property name="margin_bottom">1</property>
  29.             <signal name="clicked" handler="on_btn1_clicked" swapped="no"/>
  30.             <child>
  31.               <object class="GtkImage" id="img1">
  32.                 <property name="visible">True</property>
  33.                 <property name="can_focus">False</property>
  34.                 <property name="hexpand">True</property>
  35.                 <property name="vexpand">True</property>
  36.                 <property name="pixbuf">lightsoff.png</property>
  37.               </object>
  38.             </child>
  39.           </object>
  40.           <packing>
  41.             <property name="expand">False</property>
  42.             <property name="fill">True</property>
  43.             <property name="padding">20</property>
  44.             <property name="position">0</property>
  45.           </packing>
  46.         </child>
  47.         <child>
  48.           <object class="GtkLabel">
  49.             <property name="visible">True</property>
  50.             <property name="can_focus">False</property>
  51.             <property name="label" translatable="yes">MD Harrington </property>
  52.             <attributes>
  53.               <attribute name="font-desc" value="Sans Italic 15"/>
  54.             </attributes>
  55.           </object>
  56.           <packing>
  57.             <property name="expand">False</property>
  58.             <property name="fill">True</property>
  59.             <property name="position">1</property>
  60.           </packing>
  61.         </child>
  62.       </object>
  63.     </child>
  64.     <child type="titlebar">
  65.       <placeholder/>
  66.     </child>
  67.   </object>
  68. </interface>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement