OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17200
/
usr
/
share
/
subiquity
/
console_conf
/
ui
/
views
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/18/2024 07:58:21 PM
rwxr-xr-x
📄
__init__.py
964 bytes
08/23/2016 01:53:31 PM
rw-r--r--
📄
identity.py
3.82 KB
03/15/2017 11:20:58 PM
rw-r--r--
📄
login.py
2.71 KB
03/15/2017 11:20:58 PM
rw-r--r--
📄
welcome.py
1.43 KB
03/15/2017 11:20:58 PM
rw-r--r--
Editing: welcome.py
Close
# Copyright 2015 Canonical, Ltd. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero 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 Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. """ Welcome Welcome provides user with language selection """ import logging from subiquitycore.ui.buttons import ok_btn from subiquitycore.ui.container import ListBox, Pile from subiquitycore.ui.utils import Padding, Color from subiquitycore.view import BaseView log = logging.getLogger("console_conf.views.welcome") class WelcomeView(BaseView): def __init__(self, controller): self.controller = controller self.body = [ Padding.fixed_10(self._build_buttons()) ] super().__init__(ListBox(self.body)) def _build_buttons(self): self.buttons = [ Color.button(ok_btn(on_press=self.confirm)), ] return Pile(self.buttons) def confirm(self, result): self.controller.done()