From abd022e3475153427d8f6f4d95dd901bac06a29f Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 10 Feb 2013 17:01:12 +0100 Subject: [PATCH] scrolling ! --- layout.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layout.py b/layout.py index 69bc2d9..3b7024a 100644 --- a/layout.py +++ b/layout.py @@ -274,7 +274,10 @@ class GraphPanel(wx.ScrolledWindow): self.__do_layout() def __set_properties(self): + self.EnableScrolling(True,True) self.SetScrollRate(20, 20) + self.SetFocus() + def __do_layout(self): self.sizer_1 = wx.BoxSizer(wx.VERTICAL) @@ -660,6 +663,7 @@ class GraphPanelDendro(wx.Panel): self.panel_1.EnableScrolling(True,True) #self.panel_1.SetSize((1000,1000)) self.panel_1.SetScrollRate(20, 20) + self.panel_1.SetFocus() self.Bind(wx.EVT_BUTTON, self.ondendro, self.butdendro) self.param = {'width' : 700, 'height': 500, @@ -1173,6 +1177,7 @@ class GraphPanelSimi(wx.Panel): self.panel_1.EnableScrolling(True,True) #self.panel_1.SetSize((1000,1000)) self.panel_1.SetScrollRate(20, 20) + self.panel_1.SetFocus() def __do_layout(self): self.sizer_1 = wx.BoxSizer(wx.HORIZONTAL) -- 2.7.4