dialogs/PouTransitionDialog.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 
   121 
   121 
   122     def SetPouElementNames(self, pou_names):
   122     def SetPouElementNames(self, pou_names):
   123         self.PouElementNames = [pou_name.upper() for pou_name in pou_names]
   123         self.PouElementNames = [pou_name.upper() for pou_name in pou_names]
   124 
   124 
   125     def SetValues(self, values):
   125     def SetValues(self, values):
   126         for item, value in values.items():
   126         for item, value in list(values.items()):
   127             if item == "transitionName":
   127             if item == "transitionName":
   128                 self.TransitionName.SetValue(value)
   128                 self.TransitionName.SetValue(value)
   129             elif item == "language":
   129             elif item == "language":
   130                 self.Language.SetSelection(_(value))
   130                 self.Language.SetSelection(_(value))
   131 
   131