# HG changeset patch # User Sergey Surkov # Date 1481208883 -10800 # Node ID 466c26b0cfc22ba25bcfb50ff282402d6350c7bc # Parent 1445457547f79274683eac99f41969f09210ae18 by default init input and output in step sfc block, and output for initial step sfc block diff -r 1445457547f7 -r 466c26b0cfc2 dialogs/SFCStepDialog.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 diff -r 1445457547f7 -r 466c26b0cfc2 editors/Viewer.py --- 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)