mirror of
https://github.com/Taiko2k/GTK4PythonTutorial.git
synced 2026-01-11 13:47:10 +01:00
add xml section
This commit is contained in:
31
test.ui
Normal file
31
test.ui
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!-- Created with Cambalache 0.10.3 -->
|
||||
<interface>
|
||||
<!-- interface-name test.ui -->
|
||||
<requires lib="gtk" version="4.6"/>
|
||||
<object class="GtkApplicationWindow" id="main_window">
|
||||
<property name="default-height">200</property>
|
||||
<property name="default-width">400</property>
|
||||
<property name="title">UI XML Test</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="button1">
|
||||
<property name="halign">start</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="label">Test button</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
Reference in New Issue
Block a user