From 356a722d4cb4fc849ad847878e3d6d08b5f73cbf Mon Sep 17 00:00:00 2001
From: Romain Boman <romain.boman@gmail.com>
Date: Thu, 18 Oct 2018 15:28:26 +0200
Subject: [PATCH] adding scrollbar to option widget

---
 .gitignore    |  1 +
 launchGui.pyw | 14 ++++++++++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/.gitignore b/.gitignore
index 18415e5..5c4aae5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 .DS_Store
 *.pyc
 *~
+.vscode/
diff --git a/launchGui.pyw b/launchGui.pyw
index a1472a9..2908b2f 100755
--- a/launchGui.pyw
+++ b/launchGui.pyw
@@ -67,20 +67,26 @@ class LaunchGui(QWidget):
         hbox = QHBoxLayout()
         hbox.setContentsMargins(2,2,2,2)
         coFrame.setLayout(hbox)
+
         # Ajout de la console
         #hbox.addWidget(self.myStream.console) 
         self.buildConsole()
-        hbox.addWidget(self.console)                        
+        hbox.addWidget(self.console) 
+
         # Ajout du frame d'options
+        scroll = QScrollArea()
+        scroll.setMinimumSize(QSize(500,500))
+        scroll.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Expanding)
+        hbox.addWidget(scroll)
+
         optFrame = QFrame()
-        optFrame.setMaximumSize(QSize(500,999999))
-        hbox.addWidget(optFrame)
         optVBox = QVBoxLayout()
         optFrame.setLayout(optVBox)        
         #Ajout des Widgets d'options           
         self.buildParametersFrame(optVBox)
         #Ajout des Widgets d'action           
-        self.buildButtonFrame(optVBox)      
+        self.buildButtonFrame(optVBox) 
+        scroll.setWidget(optFrame)     
         # --------------------------------
         self.resize(1100, 600)
         # --------------------------------            
-- 
GitLab