From 3270f60e3164abf720d87d1d58ff92ddde258638 Mon Sep 17 00:00:00 2001
From: Jdrezen <jeremie.drezen@gmail.com>
Date: Wed, 19 May 2021 16:01:59 +0200
Subject: [PATCH] =?UTF-8?q?Suppression=20d'un=20scrollBar=20et=20fix=20des?=
 =?UTF-8?q?=20m=C3=A9thodes=20d'affichages?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pyAmakIHM/classes/fenetre.py   | 18 +++---------------
 pyAmakIHM/classes/panelLogs.py |  3 ---
 2 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/pyAmakIHM/classes/fenetre.py b/pyAmakIHM/classes/fenetre.py
index 06c45c2..650675e 100644
--- a/pyAmakIHM/classes/fenetre.py
+++ b/pyAmakIHM/classes/fenetre.py
@@ -55,7 +55,7 @@ class Fenetre :
         self.__onglet.add(self.__panelVue, text="Vue")
 
         self.__panel_log = PanelLogs(self.__division)
-        
+
         self.__division.add(self.__onglet)
 
         self.__division.add(self.__panel_log)
@@ -305,20 +305,8 @@ class Fenetre :
     Displaying logs on the screen
     """
     def errorDisplay(self,typeError : str, message : str) -> None:
-        if (typeError != "") and (message != ""):
-            self.__panel_log.logsDisplay(typeError+" : "+message)
-
-        elif typeError == "":
-            self.__panel_log.logsDisplay(message)
-
-        elif typeError == "":
-            self.__panel_log.logsDisplay(typeError)
+        self.__panel_log.logsDisplay("Erreur : "+typeError+", "+" : "+message)
 
-        else :
-            print("Empty string for typeError and message : at least one of them must not be empty \n")
 
     def logsDisplay(self, message : str) -> None:
-        if message== "":
-            print("The message you want to print is empty.\n")
-        else :
-            self.__panel_log.logsDisplay(message)
+        self.__panel_log.logsDisplay(message)
diff --git a/pyAmakIHM/classes/panelLogs.py b/pyAmakIHM/classes/panelLogs.py
index d49e12c..8f34f28 100644
--- a/pyAmakIHM/classes/panelLogs.py
+++ b/pyAmakIHM/classes/panelLogs.py
@@ -35,13 +35,10 @@ class PanelLogs(Text):
         put scrollbars in the text place
         """
         self.__affichageScroll = Scrollbar(self.__affichage,orient="vertical",command=self.__affichage.yview)
-        self.__affichageScroll2 = Scrollbar(self.__affichage,orient="horizontal",command=self.__affichage.xview)
 
         self.__affichage.configure(yscrollcommand=self.__affichageScroll.set)
-        self.__affichage.configure(yscrollcommand=self.__affichageScroll2.set)
 
         self.__affichageScroll.pack(side='right',fill='y')
-        self.__affichageScroll2.pack(side='bottom',fill='x')
 
     """
     return the logs place
-- 
GitLab