From 3be4e6c112bc77485804bb79b7a6ee4e21f210ac Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr> Date: Wed, 20 Mar 2024 09:25:59 +0100 Subject: [PATCH] MainWindow: Fix missing file. --- src/View/MainWindowTabChecker.py | 59 ++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 src/View/MainWindowTabChecker.py diff --git a/src/View/MainWindowTabChecker.py b/src/View/MainWindowTabChecker.py new file mode 100644 index 00000000..d3118d61 --- /dev/null +++ b/src/View/MainWindowTabChecker.py @@ -0,0 +1,59 @@ +# MainWindowTabChecker.py -- Pamhyr +# Copyright (C) 2024 INRAE +# +# 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 <https://www.gnu.org/licenses/>. + +# -*- coding: utf-8 -*- + +import logging + +from tools import timer, trace + +from View.Tools.PamhyrWidget import PamhyrWidget + +logger = logging.getLogger() + + +class WidgetChecker(PamhyrWidget): + _pamhyr_ui = "MainWindowTabCheckers" + + def __init__(self, study=None, parent=None): + self._study = study + + super(WidgetChecker, self).__init__( + parent=parent + ) + + self._checkers = set() + + self.setup_table() + self.setup_list() + + def setup_table(self): + return + + def setup_list(self): + return + + @property + def study(self): + return self._study + + @study.setter + def study(self, study): + self._study = study + + def update(self): + if self._study is None: + return -- GitLab