editors/EditorPanel.py
changeset 1836 d42b6cf00fa6
parent 1768 691083b5682a
child 1881 091005ec69c4
--- a/editors/EditorPanel.py	Thu Sep 28 17:24:33 2017 +0300
+++ b/editors/EditorPanel.py	Fri Sep 29 15:36:33 2017 +0300
@@ -38,8 +38,6 @@
         self.MenuItems = []
 
     def _init_ctrls(self, parent):
-        wx.SplitterWindow.__init__(self, parent,
-                                   style=wx.SUNKEN_BORDER | wx.SP_3D)
         self.SetMinimumPaneSize(1)
 
         self._init_MenuItems()
@@ -60,6 +58,9 @@
             self.Initialize(self.Editor)
 
     def __init__(self, parent, tagname, window, controler, debug=False):
+        wx.SplitterWindow.__init__(self, parent,
+                                   style=wx.SUNKEN_BORDER | wx.SP_3D)
+
         self.ParentWindow = window
         self.Controler = controler
         self.TagName = tagname