2022-06-24 20:01:35 +02:00
|
|
|
# window.py
|
|
|
|
#
|
|
|
|
# Copyright (C) 2022 Libre en Communs <contact@a-lec.org>
|
|
|
|
# Copyright (C) 2022 Adrien Bourmault <neox@a-lec.org>
|
|
|
|
# Copyright (C) 2022 Jean Sirmai <jean@a-lec.org>
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
from gi.repository import Gtk
|
|
|
|
|
|
|
|
|
2022-06-29 14:19:42 +02:00
|
|
|
@Gtk.Template(filename='ui/gem-graph.ui')
|
|
|
|
# @Gtk.Template(filename='ui/un_exemple.ui')
|
2022-06-24 20:01:35 +02:00
|
|
|
class GemGraphWindow(Gtk.ApplicationWindow):
|
|
|
|
__gtype_name__ = 'main'
|
|
|
|
|
|
|
|
# label = Gtk.Template.Child()
|
|
|
|
|
|
|
|
def __init__(self, **kwargs):
|
|
|
|
super().__init__(**kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
class AboutDialog(Gtk.AboutDialog):
|
|
|
|
|
|
|
|
def __init__(self, parent):
|
|
|
|
Gtk.AboutDialog.__init__(self)
|
|
|
|
self.props.program_name = 'GemGraph'
|
|
|
|
self.props.version = "0.1.0"
|
|
|
|
self.props.authors = ['Adrien Bourmault']
|
|
|
|
self.props.copyright = '2022 Adrien Bourmault'
|
|
|
|
self.props.logo_icon_name = 'org.example.App'
|
|
|
|
self.props.modal = True
|
|
|
|
self.set_transient_for(parent)
|