dialogs/ForceVariableDialog.py
changeset 1744 69dfdb26f600
parent 1742 92932cd370a4
child 1745 f9d32913bad4
--- a/dialogs/ForceVariableDialog.py	Tue Aug 15 17:01:51 2017 +0300
+++ b/dialogs/ForceVariableDialog.py	Tue Aug 15 22:38:43 2017 +0300
@@ -166,9 +166,9 @@
 class ForceVariableDialog(wx.TextEntryDialog):
 
     def __init__(self, parent, iec_type, defaultValue=""):
-        wx.TextEntryDialog.__init__(self, parent, message = _("Forcing Variable Value"),
-                caption = _("Please enter value for a \"%s\" variable:") % iec_type, defaultValue = defaultValue,
-                style = wx.OK|wx.CANCEL|wx.CENTRE, pos = wx.DefaultPosition)
+        wx.TextEntryDialog.__init__(self, parent, message=_("Forcing Variable Value"),
+                caption=_("Please enter value for a \"%s\" variable:") % iec_type, defaultValue=defaultValue,
+                style=wx.OK|wx.CANCEL|wx.CENTRE, pos=wx.DefaultPosition)
 
         self.IEC_Type = iec_type
 
@@ -199,7 +199,7 @@
         if value == "":
             message = _("You must type a value!")
         elif GetTypeValue[self.IEC_Type](value) is None:
-            message = _("Invalid value \"{a1}\" for \"{a2}\" variable!").format(a1 = value, a2 = self.IEC_Type)
+            message = _("Invalid value \"{a1}\" for \"{a2}\" variable!").format(a1=value, a2=self.IEC_Type)
         if message is not None:
             dialog = wx.MessageDialog(self, message, _("Error"), wx.OK|wx.ICON_ERROR)
             dialog.ShowModal()