by default init input and output in step sfc block, and output for initial step sfc block
authorSergey Surkov <surkovsv93@gmail.com>
Thu, 08 Dec 2016 17:54:43 +0300
changeset 1599 466c26b0cfc2
parent 1598 1445457547f7
child 1600 481a71c864d4
by default init input and output in step sfc block, and output for initial step sfc block
dialogs/SFCStepDialog.py
editors/Viewer.py
--- a/dialogs/SFCStepDialog.py	Wed Dec 07 19:28:13 2016 +0300
+++ b/dialogs/SFCStepDialog.py	Thu Dec 08 17:54:43 2016 +0300
@@ -71,6 +71,8 @@
                             ("output", _("Output")),
                             ("action", _("Action"))]:
             check_box = wx.CheckBox(self, label=label)
+            if name == "output" or (name == "input" and not initial):
+                check_box.SetValue(True)
             self.Bind(wx.EVT_CHECKBOX, self.OnConnectorsChanged, check_box)
             self.LeftGridSizer.AddWindow(check_box, flag=wx.GROW)
             self.ConnectorsCheckBox[name] = check_box
--- a/editors/Viewer.py	Wed Dec 07 19:28:13 2016 +0300
+++ b/editors/Viewer.py	Thu Dec 08 17:54:43 2016 +0300
@@ -2632,7 +2632,7 @@
                 "name": self.Controler.GenerateNewName(
                     self.TagName, None, "Step%d", 0),
                 "input": True,
-                "output": False,
+                "output": True,
                 "action":False}
         else:
             dialog = SFCStepDialog(self.ParentWindow, self.Controler, self.TagName, initial)