clean etherlab: pylint, E0102 # (function-redefined) method already defined
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Sat, 29 Sep 2018 16:35:38 +0300
changeset 2395 d47666f33923
parent 2394 bbc3d3d93562
child 2396 41adf1dfc7a7
clean etherlab: pylint, E0102 # (function-redefined) method already defined
etherlab/ConfigEditor.py
--- a/etherlab/ConfigEditor.py	Sat Sep 29 16:33:22 2018 +0300
+++ b/etherlab/ConfigEditor.py	Sat Sep 29 16:35:38 2018 +0300
@@ -627,20 +627,6 @@
         self.MasterStateEditor.SetSizer(self.MasterStateEditor_Panel_Main_Sizer)
         return self.MasterStateEditor
 
-    def OnResize(self, event):
-        self.MasterStateEditor.GetBestSize()
-        xstart, ystart = self.MasterStateEditor.GetViewStart()
-        window_size = self.MasterStateEditor.GetClientSize()
-        maxx, maxy = self.MasterStateEditor.GetMinSize()
-        posx = max(0, min(xstart, (maxx - window_size[0]) / SCROLLBAR_UNIT))
-        posy = max(0, min(ystart, (maxy - window_size[1]) / SCROLLBAR_UNIT))
-        self.MasterStateEditor.Scroll(posx, posy)
-        self.MasterStateEditor.SetScrollbars(SCROLLBAR_UNIT, SCROLLBAR_UNIT,
-                                             maxx / SCROLLBAR_UNIT,
-                                             maxy / SCROLLBAR_UNIT,
-                                             posx, posy)
-        event.Skip()
-
     def _create_EthercatMasterEditor(self, prnt):
         self.EthercatMasterEditor = wx.ScrolledWindow(prnt,
                                                       style=wx.TAB_TRAVERSAL | wx.HSCROLL | wx.VSCROLL)