dialogs/PouDialog.py
branchpython3
changeset 3750 f62625418bff
parent 3303 0ffb41625592
equal deleted inserted replaced
3749:fda6c1a37662 3750:f62625418bff
    22 # You should have received a copy of the GNU General Public License
    22 # You should have received a copy of the GNU General Public License
    23 # along with this program; if not, write to the Free Software
    23 # along with this program; if not, write to the Free Software
    24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    25 
    25 
    26 
    26 
    27 from __future__ import absolute_import
    27 
    28 import wx
    28 import wx
    29 
    29 
    30 from plcopen.structures import TestIdentifier, IEC_KEYWORDS
    30 from plcopen.structures import TestIdentifier, IEC_KEYWORDS
    31 from util.TranslationCatalogs import NoTranslate
    31 from util.TranslationCatalogs import NoTranslate
    32 
    32 
   199 
   199 
   200     def SetPouElementNames(self, element_names):
   200     def SetPouElementNames(self, element_names):
   201         self.PouElementNames = [element_name.upper() for element_name in element_names]
   201         self.PouElementNames = [element_name.upper() for element_name in element_names]
   202 
   202 
   203     def SetValues(self, values):
   203     def SetValues(self, values):
   204         for item, value in values.items():
   204         for item, value in list(values.items()):
   205             if item == "pouName":
   205             if item == "pouName":
   206                 self.PouName.SetValue(value)
   206                 self.PouName.SetValue(value)
   207             elif item == "pouType":
   207             elif item == "pouType":
   208                 self.PouType.SetStringSelection(_(value))
   208                 self.PouType.SetStringSelection(_(value))
   209             elif item == "language":
   209             elif item == "language":