install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit 94e53486809103132fa690c0d6f6e2cd316b9b5e
parent 333838c01a8955069744fc0c039515745153fed4
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Fri, 25 Nov 2016 09:43:29 +0100

Add(Install class screen):

Add proper callbacks in the main classes
Basic hello world

Diffstat:
Mscreens/conf_install/conf_install.py | 2+-
Ascreens/install/__init__.py | 0
Ascreens/install/install.py | 48++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 49 insertions(+), 1 deletion(-)

diff --git a/screens/conf_install/conf_install.py b/screens/conf_install/conf_install.py @@ -121,7 +121,7 @@ class Conf_Install: if (self.partitionning()): return self.step_by_step() - return 2 + return 6 # Step by Step configuration def step_by_step(self): diff --git a/screens/install/__init__.py b/screens/install/__init__.py diff --git a/screens/install/install.py b/screens/install/install.py @@ -0,0 +1,48 @@ +################################### LICENSE #################################### +# Copyright 2016 Morphux # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ + +## +# install.py +# Created: 25/11/2016 +# By: Louis Solofrizzo <louis@morphux.org> +## + +class Install: + +## +# Variables +## + + dlg = 0 # Dialog object + conf_lst = {} # List object for configuration + +## +# Functions +## + + # Init function, called by Main instance + def init(self, dialog, config_list): + self.dlg = dialog + self.conf_lst = config_list + self.config = { + "id": 6, + "name": "Install" + } + return self.config + + # main function, called by Main instance + def main(self): + self.dlg.msgbox("Hey there !")