dialogs/ForceVariableDialog.py
changeset 747 f36838792511
parent 732 7991eb6bcb5a
equal deleted inserted replaced
746:963123fb4917 747:f36838792511
   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,