--- a/Beremiz_service.py Tue Aug 15 22:38:43 2017 +0300
+++ b/Beremiz_service.py Wed Aug 16 11:47:27 2017 +0300
@@ -196,7 +196,7 @@
event(self, function)
def __init__(self, parent, message, caption=_("Please enter text"), defaultValue="",
- style=wx.OK|wx.CANCEL|wx.CENTRE, pos=wx.DefaultPosition):
+ style=wx.OK | wx.CANCEL | wx.CENTRE, pos=wx.DefaultPosition):
wx.TextEntryDialog.__init__(self, parent, message, caption, defaultValue, style, pos)
self.Tests = []
@@ -212,7 +212,7 @@
texts = {"value": value}
for function, message in self.Tests:
if not function(value):
- message = wx.MessageDialog(self, message % texts, _("Error"), wx.OK|wx.ICON_ERROR)
+ message = wx.MessageDialog(self, message % texts, _("Error"), wx.OK | wx.ICON_ERROR)
message.ShowModal()
message.Destroy()
return