Bug with FBDPanel fixed
authorlbessard
Wed, 10 Sep 2008 16:44:27 +0200
changeset 252 5c8167203f6e
parent 251 2066d2c65b71
child 253 b1a9d37bb84c
Bug with FBDPanel fixed
plugins/svgui/svgui.py
--- a/plugins/svgui/svgui.py	Mon Sep 08 14:33:57 2008 +0200
+++ b/plugins/svgui/svgui.py	Wed Sep 10 16:44:27 2008 +0200
@@ -47,6 +47,8 @@
         self.FBDPanel.Bind(wx.EVT_PAINT, self.OnPaintFBDPanel)
         
         setattr(self.FBDPanel, "GetScaling", lambda: None) 
+        setattr(self.FBDPanel, "IsOfType", self.IsOfType) 
+        setattr(self.FBDPanel, "GetBlockType", self.GetBlockType) 
         
         self._init_sizers()
     
@@ -55,6 +57,12 @@
         
         self.FBDBlock = None
     
+    def IsOfType(self, type, reference):
+        return self.Controler.GetPlugRoot().IsOfType(type, reference)
+    
+    def GetBlockType(self, type, inputs = None):
+        return self.Controler.GetPlugRoot().GetBlockType(type, inputs)
+    
     def RefreshView(self, select_id = None):
         SVGUIEditor.RefreshView(self, select_id)
         self.FBDPanel.Refresh()