by default init input and output in step sfc block, and output for initial step sfc block
--- 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)