2023-06-08 18:11:35 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
2024-02-10 21:22:39 +08:00
|
|
|
<requires lib="gtk" version="4.0"/>
|
2023-06-08 18:11:35 +08:00
|
|
|
<object class="GtkWindow" id="window">
|
|
|
|
<property name="default-width">440</property>
|
|
|
|
<property name="default-height">260</property>
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="child">
|
2023-06-08 18:11:35 +08:00
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="margin-start">5</property>
|
|
|
|
<property name="margin-end">5</property>
|
|
|
|
<property name="margin-top">5</property>
|
|
|
|
<property name="margin-bottom">5</property>
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="hexpand">1</property>
|
|
|
|
<property name="vexpand">1</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<property name="spacing">10</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="halign">center</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">The Numbers:</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2024-02-10 21:22:39 +08:00
|
|
|
<object class="GtkLabel" id="label_numbers"/>
|
2023-06-08 18:11:35 +08:00
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">Input answer, for example, ((6+6)+6)+6 is an answer,
|
|
|
|
"None" for no answer</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
<property name="justify">center</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEntry" id="entry_ans">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="hexpand">1</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkGrid">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="hexpand">1</property>
|
|
|
|
<property name="vexpand">1</property>
|
|
|
|
<property name="row-homogeneous">1</property>
|
|
|
|
<property name="column-homogeneous">1</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn7">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">7</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="hexpand">1</property>
|
|
|
|
<property name="vexpand">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">0</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn8">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">8</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">0</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn9">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">9</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">2</property>
|
|
|
|
<property name="row">0</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btnadd">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">+</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">3</property>
|
|
|
|
<property name="row">0</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn4">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">4</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">1</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn5">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">5</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">1</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn6">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">6</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">2</property>
|
|
|
|
<property name="row">1</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btnsubb">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">-</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">3</property>
|
|
|
|
<property name="row">1</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn1">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">1</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">2</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn2">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">2</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">2</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn3">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">3</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">2</property>
|
|
|
|
<property name="row">2</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btnmul">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">*</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">3</property>
|
|
|
|
<property name="row">2</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btnleft">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">(</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">3</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn0">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">0</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">3</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btnright">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">)</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">2</property>
|
|
|
|
<property name="row">3</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btndiv">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">/</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">3</property>
|
|
|
|
<property name="row">3</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="halign">center</property>
|
|
|
|
<property name="spacing">10</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btnstart">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">Start</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btnnext">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">Next</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btncheck">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">Check</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btnclear">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">Clear</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btnexit">
|
2024-02-10 21:22:39 +08:00
|
|
|
<property name="label" translatable="1">Exit</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
2024-02-10 21:22:39 +08:00
|
|
|
</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</interface>
|