2023-06-08 18:11:35 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
2024-02-10 20:40:05 +08:00
|
|
|
<requires lib="gtk" version="4.0"/>
|
|
|
|
<!-- <object class="GtkWindow" id="window"> -->
|
|
|
|
<template class="GameApp" parent="GtkWindow">
|
|
|
|
<property name="title" translatable="1">Guess Game</property>
|
|
|
|
<property name="destroy-with-parent">1</property>
|
|
|
|
<property name="child">
|
2023-06-08 18:11:35 +08:00
|
|
|
<object class="GtkGrid">
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="visible">1</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="label">
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="label" translatable="1">Select a button</property>
|
|
|
|
<property name="visible">1</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">0</property>
|
|
|
|
<property name="column-span">3</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn_1">
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="label" translatable="1">1</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
<property name="width-request">100</property>
|
|
|
|
<property name="height-request">100</property>
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<property name="visible">1</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="btn_2">
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="label" translatable="1">2</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
<property name="width-request">100</property>
|
|
|
|
<property name="height-request">100</property>
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<property name="visible">1</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="btn_3">
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="label" translatable="1">3</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
<property name="width-request">100</property>
|
|
|
|
<property name="height-request">100</property>
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<property name="visible">1</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">4</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn_4">
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="label" translatable="1">4</property>
|
2023-06-08 18:11:35 +08:00
|
|
|
<property name="width-request">100</property>
|
|
|
|
<property name="height-request">100</property>
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="has-frame">0</property>
|
|
|
|
<property name="visible">1</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">3</property>
|
|
|
|
<property name="row">4</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn_go">
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="label" translatable="1">Go</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="visible">1</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">6</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="btn_exit">
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="label" translatable="1">Exit</property>
|
|
|
|
<property name="focusable">1</property>
|
|
|
|
<property name="receives-default">1</property>
|
|
|
|
<property name="visible">1</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">3</property>
|
|
|
|
<property name="row">6</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="width-request">20</property>
|
|
|
|
<property name="height-request">20</property>
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="visible">1</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="GtkLabel">
|
|
|
|
<property name="width-request">20</property>
|
|
|
|
<property name="height-request">20</property>
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="visible">1</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">2</property>
|
|
|
|
<property name="row">5</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="width-request">20</property>
|
|
|
|
<property name="height-request">20</property>
|
2024-02-10 20:40:05 +08:00
|
|
|
<property name="visible">1</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">2</property>
|
|
|
|
<property name="row">1</property>
|
|
|
|
</layout>
|
2023-06-08 18:11:35 +08:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<placeholder/>
|
|
|
|
</child>
|
|
|
|
</object>
|
2024-02-10 20:40:05 +08:00
|
|
|
</property>
|
|
|
|
</template>
|
|
|
|
<!-- </object> -->
|
2023-06-08 18:11:35 +08:00
|
|
|
</interface>
|