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

📄 calculator.glade

📁 用GTK实现的一个简单的计算器程序
💻 GLADE
📖 第 1 页 / 共 2 页
字号:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd"><!--*- mode: xml -*--><glade-interface>  <widget class="GtkWindow" id="window">    <property name="visible">True</property>    <property name="title" translatable="yes">window</property>    <property name="default_width">500</property>    <property name="default_height">400</property>    <signal name="destroy" handler="destroy"/>    <signal name="delete_event" handler="delete_event"/>    <child>      <widget class="GtkVBox" id="vbox1">        <property name="visible">True</property>        <child>          <widget class="GtkMenuBar" id="menubar">            <property name="visible">True</property>            <child>              <widget class="GtkMenuItem" id="menuitem_about">                <property name="visible">True</property>                <property name="label" translatable="yes">鍏充簬(_H)</property>                <property name="use_underline">True</property>                <signal name="select" handler="on_imagemenuitem_about_activate" object="menuitem_about"/>              </widget>            </child>          </widget>          <packing>            <property name="expand">False</property>          </packing>        </child>        <child>          <widget class="GtkEntry" id="entry">            <property name="width_request">0</property>            <property name="height_request">40</property>            <property name="visible">True</property>            <property name="can_focus">True</property>            <property name="editable">False</property>            <property name="max_length">20</property>            <property name="invisible_char">0</property>            <property name="text" translatable="yes">0</property>            <property name="xalign">1</property>            <property name="shadow_type">GTK_SHADOW_NONE</property>          </widget>          <packing>            <property name="position">1</property>          </packing>        </child>        <child>          <widget class="GtkTable" id="table1">            <property name="visible">True</property>            <property name="n_rows">5</property>            <property name="n_columns">4</property>            <child>              <widget class="GtkButton" id="button_4">                <property name="visible">True</property>                <property name="can_focus">True</property>                <property name="receives_default">True</property>                <property name="label" translatable="yes">4</property>                <property name="response_id">0</property>                <signal name="clicked" handler="number_button_clicked_cb" object="entry"/>              </widget>              <packing>                <property name="top_attach">2</property>                <property name="bottom_attach">3</property>                <property name="x_padding">3</property>                <property name="y_padding">3</property>              </packing>            </child>            <child>              <widget class="GtkButton" id="button_1">                <property name="visible">True</property>                <property name="can_focus">True</property>                <property name="receives_default">True</property>                <property name="label" translatable="yes">1</property>                <property name="response_id">0</property>                <signal name="clicked" handler="number_button_clicked_cb" object="entry"/>              </widget>              <packing>                <property name="top_attach">3</property>                <property name="bottom_attach">4</property>                <property name="x_padding">3</property>                <property name="y_padding">3</property>              </packing>            </child>            <child>              <widget class="GtkButton" id="button_0">                <property name="visible">True</property>                <property name="can_focus">True</property>                <property name="receives_default">True</property>                <property name="label" translatable="yes">0</property>                <property name="response_id">0</property>                <signal name="clicked" handler="number_button_clicked_cb" object="entry"/>              </widget>              <packing>                <property name="top_attach">4</property>                <property name="bottom_attach">5</property>                <property name="x_padding">3</property>                <property name="y_padding">3</property>              </packing>            </child>            <child>              <widget class="GtkButton" id="button_point">                <property name="visible">True</property>                <property name="can_focus">True</property>                <property name="receives_default">True</property>                <property name="label" translatable="yes">.</property>                <property name="response_id">0</property>                <signal name="clicked" handler="number_button_clicked_cb" object="entry"/>              </widget>              <packing>                <property name="left_attach">1</property>                <property name="right_attach">2</property>                <property name="top_attach">4</property>                <property name="bottom_attach">5</property>                <property name="x_padding">3</property>                <property name="y_padding">3</property>              </packing>            </child>            <child>              <widget class="GtkButton" id="button_2">                <property name="visible">True</property>                <property name="can_focus">True</property>                <property name="receives_default">True</property>                <property name="label" translatable="yes">2</property>                <property name="response_id">0</property>                <signal name="clicked" handler="number_button_clicked_cb" object="entry"/>              </widget>              <packing>                <property name="left_attach">1</property>                <property name="right_attach">2</property>                <property name="top_attach">3</property>                <property name="bottom_attach">4</property>                <property name="x_padding">3</property>                <property name="y_padding">3</property>              </packing>            </child>            <child>              <widget class="GtkButton" id="button_5">                <property name="visible">True</property>                <property name="can_focus">True</property>                <property name="receives_default">True</property>                <property name="label" translatable="yes">5</property>                <property name="response_id">0</property>                <signal name="clicked" handler="number_button_clicked_cb" object="entry"/>              </widget>              <packing>                <property name="left_attach">1</property>                <property name="right_attach">2</property>                <property name="top_attach">2</property>                <property name="bottom_attach">3</property>                <property name="x_padding">3</property>                <property name="y_padding">3</property>              </packing>            </child>            <child>              <widget class="GtkButton" id="button_6">                <property name="visible">True</property>                <property name="can_focus">True</property>                <property name="receives_default">True</property>                <property name="label" translatable="yes">6</property>                <property name="response_id">0</property>                <signal name="clicked" handler="number_button_clicked_cb" object="entry"/>              </widget>              <packing>                <property name="left_attach">2</property>                <property name="right_attach">3</property>                <property name="top_attach">2</property>                <property name="bottom_attach">3</property>                <property name="x_padding">3</property>                <property name="y_padding">3</property>              </packing>            </child>            <child>              <widget class="GtkButton" id="button_3">                <property name="visible">True</property>                <property name="can_focus">True</property>                <property name="receives_default">True</property>                <property name="label" translatable="yes">3</property>                <property name="response_id">0</property>                <signal name="clicked" handler="number_button_clicked_cb" object="entry"/>              </widget>              <packing>                <property name="left_attach">2</property>                <property name="right_attach">3</property>                <property name="top_attach">3</property>                <property name="bottom_attach">4</property>                <property name="x_padding">3</property>                <property name="y_padding">3</property>              </packing>            </child>            <child>              <widget class="GtkButton" id="button_equality">                <property name="visible">True</property>                <property name="can_focus">True</property>                <property name="receives_default">True</property>                <property name="label" translatable="yes">=</property>                <property name="response_id">0</property>                <signal name="clicked" handler="number_button_clicked_cb" object="entry"/>              </widget>              <packing>                <property name="left_attach">2</property>                <property name="right_attach">3</property>                <property name="top_attach">4</property>                <property name="bottom_attach">5</property>                <property name="x_padding">3</property>                <property name="y_padding">3</property>              </packing>            </child>            <child>              <widget class="GtkButton" id="button_plus">                <property name="visible">True</property>                <property name="can_focus">True</property>                <property name="receives_default">True</property>

⌨️ 快捷键说明

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