add function block to variable panel if fb is added using toolbar
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 04 Apr 2017 11:34:31 +0300
changeset 1671 0dc834721d8e
parent 1670 cd03b8432541
child 1672 9298ba0cd70a
add function block to variable panel if fb is added using toolbar

Closes #25
editors/Viewer.py
--- a/editors/Viewer.py	Tue Mar 28 19:48:51 2017 +0300
+++ b/editors/Viewer.py	Tue Apr 04 11:34:31 2017 +0300
@@ -2546,6 +2546,8 @@
                         connector = input_connector
                         break
             self.AddNewElement(block, bbox, wire, connector)
+            self.RefreshVariablePanel()
+            self.ParentWindow.RefreshPouInstanceVariablesPanel()                    
         dialog.Destroy()
 
     def AddNewVariable(self, bbox, exclude_input=False, wire=None):