editors/Viewer.py
changeset 1599 466c26b0cfc2
parent 1586 e17406dd4f06
child 1605 0b6b60241230
equal deleted inserted replaced
1598:1445457547f7 1599:466c26b0cfc2
  2630         if wire is not None:
  2630         if wire is not None:
  2631             values = {
  2631             values = {
  2632                 "name": self.Controler.GenerateNewName(
  2632                 "name": self.Controler.GenerateNewName(
  2633                     self.TagName, None, "Step%d", 0),
  2633                     self.TagName, None, "Step%d", 0),
  2634                 "input": True,
  2634                 "input": True,
  2635                 "output": False,
  2635                 "output": True,
  2636                 "action":False}
  2636                 "action":False}
  2637         else:
  2637         else:
  2638             dialog = SFCStepDialog(self.ParentWindow, self.Controler, self.TagName, initial)
  2638             dialog = SFCStepDialog(self.ParentWindow, self.Controler, self.TagName, initial)
  2639             dialog.SetPreviewFont(self.GetFont())
  2639             dialog.SetPreviewFont(self.GetFont())
  2640             dialog.SetMinElementSize((bbox.width, bbox.height))
  2640             dialog.SetMinElementSize((bbox.width, bbox.height))