dialogs/PouActionDialog.py
changeset 1736 7e61baa047f0
parent 1734 750eeb7230a1
child 1739 ec153828ded2
equal deleted inserted replaced
1735:c02818d7e29f 1736:7e61baa047f0
    25 
    25 
    26 import wx
    26 import wx
    27 
    27 
    28 from plcopen.structures import TestIdentifier, IEC_KEYWORDS
    28 from plcopen.structures import TestIdentifier, IEC_KEYWORDS
    29 
    29 
       
    30 
    30 def GetActionLanguages():
    31 def GetActionLanguages():
    31     _ = lambda x : x
    32     _ = lambda x : x
    32     return [_("IL"), _("ST"), _("LD"), _("FBD")]
    33     return [_("IL"), _("ST"), _("LD"), _("FBD")]
    33 ACTION_LANGUAGES_DICT = dict([(_(language), language) for language in GetActionLanguages()])
    34 ACTION_LANGUAGES_DICT = dict([(_(language), language) for language in GetActionLanguages()])
       
    35 
    34 
    36 
    35 class PouActionDialog(wx.Dialog):
    37 class PouActionDialog(wx.Dialog):
    36 
    38 
    37     def __init__(self, parent):
    39     def __init__(self, parent):
    38         wx.Dialog.__init__(self, parent, title=_('Create a new action'))
    40         wx.Dialog.__init__(self, parent, title=_('Create a new action'))