⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.glade

📁 使用Pygtk写的几个例子
💻 GLADE
字号:
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--><!DOCTYPE glade-interface SYSTEM "../glade-2.0.dtd" ><glade-interface>  <widget class="GtkWindow" id="window1">    <property name="title" translatable="yes">Testing</property>    <property name="border_width">10</property>    <property name="visible">yes</property>    <accessibility>      <atkproperty name="AtkObject::accessible-name">Test Frame</atkproperty>      <atkproperty name="AtkObject::accessible-description">          This is the first of two test windows.      </atkproperty>    </accessibility>    <child>      <widget class="GtkVBox" id="vbox1">        <property name="spacing">5</property>        <property name="visible">yes</property>        <child>          <widget class="GtkLabel" id="label1">            <property name="label" translatable="yes">A label</property>            <property name="visible">yes</property>            <accessibility>              <atkproperty name="AtkObject::accessible-name">A label</atkproperty>              <atkrelation target="button1" type="label_for"/>            </accessibility>           </widget>	  <packing>            <property name="expand">no</property>	  </packing>        </child>        <child>          <widget class="GtkButton" id="button1">            <property name="tooltip">I am a tooltip</property>            <property name="visible">yes</property>            <accessibility>              <atkproperty name="AtkObject::accessible-name">Push Me Button</atkproperty>              <atkproperty name="AtkObject::accessible-description">                This button wants to be pushed.              </atkproperty>              <atkaction action_name="click" description="This buttondares you to invoke this action."/>              <atkaction action_name="press" description="This actiondoes nothing interesting."/>              <atkrelation target="label1" type="labelled_by"/>            </accessibility> 	    <signal name="clicked" handler="gtk_main_quit" />            <child>              <widget class="GtkLabel" id="label2">                <property name="label" translatable="yes">_Push me</property>                <property name="use_underline">yes</property>                <property name="visible">yes</property>              </widget>            </child>          </widget>        </child>      </widget>    </child>  </widget>  <widget class="GtkDialog" id="dialog1">    <property name="title" translatable="yes">Testing2</property>    <property name="border_width">10</property>    <property name="visible">yes</property>    <accessibility>      <atkproperty name="AtkObject::accessible-name">Testing 2</atkproperty>      <atkproperty name="AtkObject::accessible-description">          This is the second of two test windows, a test dialog box.      </atkproperty>    </accessibility>    <child internal-child="vbox">      <widget class="GtkVBox" id="vbox2">        <child>          <widget class="GtkLabel" id="label3">            <property name="label" translatable="yes">Click the button below</property>            <property name="visible">yes</property>            <accessibility>              <atkrelation target="button2" type="label_for"/>            </accessibility>          </widget>	  <packing>            <property name="expand">yes</property>	  </packing>        </child>	<child internal-child="action_area">	  <widget class="GtkHButtonBox" id="buttonbox1">	    <child>              <widget class="GtkButton" id="button2">                <property name="visible">yes</property>                 <accessibility>                  <atkproperty name="AtkObject::accessible-name">Cancel</atkproperty>                  <atkproperty name="AtkObject::accessible-description">                    Another button that does the same as the first one...                  </atkproperty>                  <atkaction action_name="click" description="Cancel (and exit) the test."/>                  <atkaction action_name="press" description="This actiondoes nothing interesting."/>                  <atkrelation target="label3" type="labelled_by"/>                </accessibility> 	        <signal name="clicked" handler="gtk_main_quit" />                <child>                  <widget class="GtkLabel" id="label4">                    <property name="label" translatable="yes">_Cancel</property>                    <property name="use_underline">yes</property>                    <property name="visible">yes</property>                  </widget>                </child>              </widget>	    </child>	  </widget>	</child>      </widget>    </child>  </widget></glade-interface>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -