|
1 #!/usr/bin/env python |
1 # -*- coding: utf-8 -*- |
2 # -*- coding: utf-8 -*- |
2 |
3 |
3 #This file is part of PLCOpenEditor, a library implementing an IEC 61131-3 editor |
4 # This file is part of Beremiz, a Integrated Development Environment for |
4 #based on the plcopen standard. |
5 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival. |
5 # |
6 # |
6 #Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD |
7 # Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD |
7 # |
8 # |
8 #See COPYING file for copyrights details. |
9 # See COPYING file for copyrights details. |
9 # |
10 # |
10 #This library is free software; you can redistribute it and/or |
11 # This program is free software; you can redistribute it and/or |
11 #modify it under the terms of the GNU General Public |
12 # modify it under the terms of the GNU General Public License |
12 #License as published by the Free Software Foundation; either |
13 # as published by the Free Software Foundation; either version 2 |
13 #version 2.1 of the License, or (at your option) any later version. |
14 # of the License, or (at your option) any later version. |
14 # |
15 # |
15 #This library is distributed in the hope that it will be useful, |
16 # This program is distributed in the hope that it will be useful, |
16 #but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 #General Public License for more details. |
19 # GNU General Public License for more details. |
19 # |
20 # |
20 #You should have received a copy of the GNU General Public |
21 # You should have received a copy of the GNU General Public License |
21 #License along with this library; if not, write to the Free Software |
22 # along with this program; if not, write to the Free Software |
22 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
23 |
24 |
24 import wx |
25 import wx |
25 |
26 |
26 from graphics.SFC_Objects import SFC_Transition |
27 from graphics.SFC_Objects import SFC_Transition |
27 from BlockPreviewDialog import BlockPreviewDialog |
28 from BlockPreviewDialog import BlockPreviewDialog |
45 @param tagname: Tagname of project POU edited |
46 @param tagname: Tagname of project POU edited |
46 @param connection: True if transition value can be defined by a |
47 @param connection: True if transition value can be defined by a |
47 connection (default: True) |
48 connection (default: True) |
48 """ |
49 """ |
49 BlockPreviewDialog.__init__(self, parent, controller, tagname, |
50 BlockPreviewDialog.__init__(self, parent, controller, tagname, |
50 size=wx.Size(350, 300), title=_('Edit transition')) |
51 size=wx.Size(350, 350), title=_('Edit transition')) |
51 |
52 |
52 # Init common sizers |
53 # Init common sizers |
53 self._init_sizers(2, 0, 8, None, 2, 1) |
54 self._init_sizers(2, 0, 8, None, 2, 1) |
54 |
55 |
55 # Create label for transition type |
56 # Create label for transition type |