ConfTreeNodeEditor.py
changeset 744 bdab45f96aa0
parent 742 41a4a560406c
parent 743 4645a3a398ad
child 746 2e09777a40d3
--- a/ConfTreeNodeEditor.py	Tue May 22 06:11:37 2012 +0200
+++ b/ConfTreeNodeEditor.py	Tue May 22 06:41:54 2012 +0200
@@ -237,10 +237,13 @@
         else:
             self.Editor.Initialize(self.ParamsEditor)
     
-    def __init__(self, parent, tagname, controler, window):
+    def __init__(self, parent, controler, window, tagname=""):
         EditorPanel.__init__(self, parent, tagname, window, controler)
-    
-        self.SetIcon(wx.Bitmap(self.Controler.GetIconPath(), wx.BITMAP_TYPE_PNG))
+        
+        icon_path = self.Controler.GetIconPath()
+        if icon_path is None:
+            icon_path = opjimg("Extension")
+        self.SetIcon(wx.Bitmap(icon_path, wx.BITMAP_TYPE_PNG))
     
     def __del__(self):
         self.Controler.OnCloseEditor(self)
@@ -257,6 +260,15 @@
     def HasNoModel(self):
         return False
     
+    def GetBufferState(self):
+        return False, False
+    
+    def Undo(self):
+        pass
+    
+    def Redo(self):
+        pass
+    
     def EnableScrolling(self, enable):
         self.ScrollingEnabled = enable