equal
deleted
inserted
replaced
148 |
148 |
149 class ForceVariableDialog(wx.TextEntryDialog): |
149 class ForceVariableDialog(wx.TextEntryDialog): |
150 |
150 |
151 def __init__(self, parent, iec_type, defaultValue=""): |
151 def __init__(self, parent, iec_type, defaultValue=""): |
152 wx.TextEntryDialog.__init__(self, parent, message = _("Forcing Variable Value"), |
152 wx.TextEntryDialog.__init__(self, parent, message = _("Forcing Variable Value"), |
153 caption = _("Please enter value for a \"%s\" variable:"%iec_type), defaultValue = defaultValue, |
153 caption = _("Please enter value for a \"%s\" variable:") % iec_type, defaultValue = defaultValue, |
154 style = wx.OK|wx.CANCEL|wx.CENTRE, pos = wx.DefaultPosition) |
154 style = wx.OK|wx.CANCEL|wx.CENTRE, pos = wx.DefaultPosition) |
155 |
155 |
156 self.IEC_Type = iec_type |
156 self.IEC_Type = iec_type |
157 |
157 |
158 self.Bind(wx.EVT_BUTTON, self.OnOK, |
158 self.Bind(wx.EVT_BUTTON, self.OnOK, |