equal
deleted
inserted
replaced
46 @param controller: Reference to project controller |
46 @param controller: Reference to project controller |
47 @param tagname: Tagname of project POU edited |
47 @param tagname: Tagname of project POU edited |
48 @param initial: True if step is initial (default: False) |
48 @param initial: True if step is initial (default: False) |
49 """ |
49 """ |
50 BlockPreviewDialog.__init__(self, parent, controller, tagname, |
50 BlockPreviewDialog.__init__(self, parent, controller, tagname, |
51 title=_('Edit Step')) |
51 title=_('Edit Step')) |
52 |
52 |
53 # Init common sizers |
53 # Init common sizers |
54 self._init_sizers(2, 0, 6, None, 2, 1) |
54 self._init_sizers(2, 0, 6, None, 2, 1) |
55 |
55 |
56 # Create label for SFC step name |
56 # Create label for SFC step name |
81 # Add preview panel and associated label to sizers |
81 # Add preview panel and associated label to sizers |
82 self.RightGridSizer.AddWindow(self.PreviewLabel, flag=wx.GROW) |
82 self.RightGridSizer.AddWindow(self.PreviewLabel, flag=wx.GROW) |
83 self.RightGridSizer.AddWindow(self.Preview, flag=wx.GROW) |
83 self.RightGridSizer.AddWindow(self.Preview, flag=wx.GROW) |
84 |
84 |
85 # Add buttons sizer to sizers |
85 # Add buttons sizer to sizers |
86 self.MainSizer.AddSizer(self.ButtonSizer, border=20, |
86 self.MainSizer.AddSizer( |
87 flag=wx.ALIGN_RIGHT | wx.BOTTOM | wx.LEFT | wx.RIGHT) |
87 self.ButtonSizer, border=20, |
|
88 flag=wx.ALIGN_RIGHT | wx.BOTTOM | wx.LEFT | wx.RIGHT) |
88 |
89 |
89 # Save flag that indicates that step is initial |
90 # Save flag that indicates that step is initial |
90 self.Initial = initial |
91 self.Initial = initial |
91 |
92 |
92 # Set default name for step |
93 # Set default name for step |