essais de copier-coller-modifier en partant du fichier XML gem-graph.ui
This commit is contained in:
parent
6cd611a5b4
commit
fffaaa8df0
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -77,4 +77,4 @@ class GemGraphApplication(Adw.Application):
|
|||
def main(version):
|
||||
"""The application's entry point."""
|
||||
app = GemGraphApplication()
|
||||
return app.run(sys.argv)
|
||||
return app.run(sys.argv)
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
from gi.repository import Gtk
|
||||
|
||||
|
||||
@Gtk.Template(filename='ui/gemgraph.ui')
|
||||
@Gtk.Template(filename='ui/gem-graph.ui')
|
||||
# @Gtk.Template(filename='ui/un_exemple.ui')
|
||||
class GemGraphWindow(Gtk.ApplicationWindow):
|
||||
__gtype_name__ = 'main'
|
||||
|
||||
|
|
|
@ -0,0 +1,99 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!-- Created with Cambalache 0.10.2 -->
|
||||
<interface>
|
||||
<!-- interface-name gem-graph.ui -->
|
||||
<requires lib="gtk" version="4.6"/>
|
||||
<requires lib="libadwaita" version="1.1"/>
|
||||
<template class="main" parent="GtkApplicationWindow">
|
||||
<interface>
|
||||
<object class="GtkListStore" id="liststore1">
|
||||
<columns>
|
||||
<column type="gboolean"/>
|
||||
<column type="gchararray"/>
|
||||
<column type="gchararray"/>
|
||||
<column type="gchararray"/>
|
||||
<column type="gboolean"/>
|
||||
</columns>
|
||||
</object>
|
||||
<property name="default-height">720</property>
|
||||
<property name="default-width">1080</property>
|
||||
<property name="icon-name">application-x-executable</property>
|
||||
<property name="title">--- Gem-graph 0.0.1 ---</property>
|
||||
<child type="titlebar">
|
||||
<object class="AdwHeaderBar" id="main_titlebar">
|
||||
<child type="end">
|
||||
<object class="GtkMenuButton" id="main_button_menu">
|
||||
<property name="direction">none</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="start">
|
||||
<object class="GtkMenuButton" id="main_button_mode">
|
||||
<property name="always-show-arrow">True</property>
|
||||
<property name="icon-name">document-edit-symbolic</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToggleButton" id="main_button_sidebar">
|
||||
<property name="icon-name">sidebar-show-symbolic</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkPaned" id="main_paned">
|
||||
<property name="position">250</property>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow" id="scrolledwindow1">
|
||||
<property name="width-request">150</property>
|
||||
<property name="vscrollbar-policy">0</property>
|
||||
<property name="has-frame">1</property>
|
||||
<property name="vexpand">1</property>
|
||||
<child>
|
||||
<object class="GtkTreeView" id="treeview1">
|
||||
<property name="model">liststore1</property>
|
||||
<property name="headers-clickable">0</property>
|
||||
<property name="search-column">0</property>
|
||||
<child internal-child="selection">
|
||||
<object class="GtkTreeSelection" id="treeview-selection"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="treeviewcolumn3">
|
||||
<property name="title" translatable="1">First Name</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererToggle" id="cellrenderertoggle1"/>
|
||||
<attributes>
|
||||
<attribute name="active">0</attribute>
|
||||
<attribute name="radio">4</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="treeviewcolumn1">
|
||||
<property name="title" translatable="1">Name</property>
|
||||
<property name="resizable">1</property>
|
||||
<property name="reorderable">1</property>
|
||||
<property name="sort-indicator">1</property>
|
||||
<property name="sort-column-id">2</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText" id="cellrenderertext3">
|
||||
<property name="ellipsize">3</property>
|
||||
</object>
|
||||
<attributes>
|
||||
<attribute name="text">2</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFrame" id="main_frame"/>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</interface>
|
||||
</template>
|
||||
</interface>
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue