parent
ae91a5d789
commit
39e71cd1e0
@ -0,0 +1,32 @@
|
||||
# installer_Screen.py
|
||||
|
||||
#
|
||||
# Copyright 2022 user
|
||||
|
||||
#
|
||||
# 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, Adw
|
||||
from gettext import gettext as _
|
||||
|
||||
@Gtk.Template(resource_path='/al/getcryst/jadegui/pages/install_screen.ui')
|
||||
class InstallScreen(Adw.Bin):
|
||||
__gtype_name__="InstallScreen"
|
||||
|
||||
log_text = Gtk.Template.Child()
|
||||
|
||||
def __init__(self, window, main_carousel, next_page, application, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
self.log_text.set_text("tsarnitasnri\ntnaoietnioer\ntsarnitoarsn\ntisratnoisr")
|
@ -0,0 +1,36 @@
|
||||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template InstallScreen : Adw.Bin {
|
||||
hexpand: true;
|
||||
vexpand: true;
|
||||
Gtk.Box {
|
||||
hexpand: true;
|
||||
vexpand: true;
|
||||
Adw.StatusPage {
|
||||
hexpand: true;
|
||||
vexpand: true;
|
||||
title: "Installing Crystal";
|
||||
description: "This may take some time";
|
||||
Gtk.Box {
|
||||
margin-end: 50;
|
||||
margin-start: 50;
|
||||
styles ["card"]
|
||||
Gtk.ScrolledWindow {
|
||||
margin-start: 12;
|
||||
margin-end: 12;
|
||||
min-content-height: 200;
|
||||
overflow: hidden;
|
||||
Gtk.Label log_text {
|
||||
hexpand: true;
|
||||
vexpand: true;
|
||||
wrap: true;
|
||||
selectable: true;
|
||||
xalign: 0;
|
||||
yalign: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue