replaced normal panel with scrolled panel under project properties
authordporopat <denis.poropat@smarteh.si>
Fri, 20 Jan 2017 13:22:31 +0100
changeset 1885 570122574a97
parent 1884 48bd91d7a0ae
child 1886 e4a656e73aec
replaced normal panel with scrolled panel under project properties
controls/ProjectPropertiesPanel.py
--- a/controls/ProjectPropertiesPanel.py	Tue Dec 05 12:38:04 2017 +0300
+++ b/controls/ProjectPropertiesPanel.py	Fri Jan 20 13:22:31 2017 +0100
@@ -25,6 +25,7 @@
 
 from __future__ import absolute_import
 import wx
+from wx.lib.scrolledpanel import ScrolledPanel
 
 # -------------------------------------------------------------------------------
 #                                 Helpers
@@ -74,7 +75,9 @@
 
         # Project Panel elements
 
-        self.ProjectPanel = wx.Panel(self, style=wx.TAB_TRAVERSAL)
+        self.ProjectPanel = ScrolledPanel(self,-1,style=wx.TAB_TRAVERSAL)
+        self.ProjectPanel.SetAutoLayout(1)
+        self.ProjectPanel.SetupScrolling()
         projectpanel_sizer = wx.FlexGridSizer(cols=2, hgap=5, rows=5, vgap=15)
         projectpanel_sizer.AddGrowableCol(1)
         self.ProjectPanel.SetSizer(projectpanel_sizer)
@@ -90,7 +93,9 @@
 
         # Author Panel elements
 
-        self.AuthorPanel = wx.Panel(self, style=wx.TAB_TRAVERSAL)
+        self.AuthorPanel = ScrolledPanel(self,-1,style=wx.TAB_TRAVERSAL)
+        self.AuthorPanel.SetAutoLayout(1)
+        self.AuthorPanel.SetupScrolling()
         authorpanel_sizer = wx.FlexGridSizer(cols=2, hgap=5, rows=4, vgap=15)
         authorpanel_sizer.AddGrowableCol(1)
         self.AuthorPanel.SetSizer(authorpanel_sizer)
@@ -105,7 +110,9 @@
 
         # Graphics Panel elements
 
-        self.GraphicsPanel = wx.Panel(self, style=wx.TAB_TRAVERSAL)
+        self.GraphicsPanel = ScrolledPanel(self,-1,style=wx.TAB_TRAVERSAL)
+        self.GraphicsPanel.SetAutoLayout(1)
+        self.GraphicsPanel.SetupScrolling()
         graphicpanel_sizer = wx.FlexGridSizer(cols=1, hgap=5, rows=4, vgap=5)
         graphicpanel_sizer.AddGrowableCol(0)
         graphicpanel_sizer.AddGrowableRow(3)
@@ -181,9 +188,11 @@
 
         # Miscellaneous Panel elements
 
-        self.MiscellaneousPanel = wx.Panel(
-            id=-1, parent=self, name='MiscellaneousPanel', pos=wx.Point(0, 0),
-            size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL)
+        self.MiscellaneousPanel = ScrolledPanel(id=-1, parent=self,
+              name='MiscellaneousPanel', pos=wx.Point(0, 0),
+              size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL)
+        self.MiscellaneousPanel.SetAutoLayout(1)
+        self.MiscellaneousPanel.SetupScrolling()
         miscellaneouspanel_sizer = wx.FlexGridSizer(cols=2, hgap=5, rows=2, vgap=15)
         miscellaneouspanel_sizer.AddGrowableCol(1)
         miscellaneouspanel_sizer.AddGrowableRow(1)