--- a/dialogs/LDElementDialog.py Fri Aug 18 12:36:31 2017 +0300
+++ b/dialogs/LDElementDialog.py Fri Aug 18 20:14:38 2017 +0300
@@ -51,18 +51,18 @@
@param type: Type of LD element ('contact or 'coil')
"""
BlockPreviewDialog.__init__(self, parent, controller, tagname,
- title=(_("Edit Contact Values")
- if type == "contact"
- else _("Edit Coil Values")))
+ title=(_("Edit Contact Values")
+ if type == "contact"
+ else _("Edit Coil Values")))
# Init common sizers
- self._init_sizers(2, 0,
- (7 if type == "contact" else 9), None, 2, 1)
+ self._init_sizers(2, 0, (7 if type == "contact" else 9),
+ None, 2, 1)
# Create label for LD element modifier
modifier_label = wx.StaticText(self, label=_('Modifier:'))
self.LeftGridSizer.AddWindow(modifier_label, border=5,
- flag=wx.GROW | wx.BOTTOM)
+ flag=wx.GROW | wx.BOTTOM)
# Create radio buttons for selecting LD element modifier
self.ModifierRadioButtons = {}
@@ -79,7 +79,7 @@
for modifier, label in zip(element_modifiers, modifiers_label):
radio_button = wx.RadioButton(self, label=label,
- style=(wx.RB_GROUP if first else 0))
+ style=(wx.RB_GROUP if first else 0))
radio_button.SetValue(first)
self.Bind(wx.EVT_RADIOBUTTON, self.OnModifierChanged, radio_button)
self.LeftGridSizer.AddWindow(radio_button, flag=wx.GROW)
@@ -89,7 +89,7 @@
# Create label for LD element variable
element_variable_label = wx.StaticText(self, label=_('Variable:'))
self.LeftGridSizer.AddWindow(element_variable_label, border=5,
- flag=wx.GROW | wx.TOP)
+ flag=wx.GROW | wx.TOP)
# Create a combo box for defining LD element variable
self.ElementVariable = wx.ComboBox(self, style=wx.CB_SORT)
@@ -98,7 +98,7 @@
self.Bind(wx.EVT_TEXT, self.OnVariableChanged,
self.ElementVariable)
self.LeftGridSizer.AddWindow(self.ElementVariable, border=5,
- flag=wx.GROW | wx.TOP)
+ flag=wx.GROW | wx.TOP)
# Add preview panel and associated label to sizers
self.RightGridSizer.AddWindow(self.PreviewLabel, flag=wx.GROW)
@@ -106,7 +106,7 @@
# Add buttons sizer to sizers
self.MainSizer.AddSizer(self.ButtonSizer, border=20,
- flag=wx.ALIGN_RIGHT | wx.BOTTOM | wx.LEFT | wx.RIGHT)
+ flag=wx.ALIGN_RIGHT | wx.BOTTOM | wx.LEFT | wx.RIGHT)
# Save LD element class
self.ElementClass = (LD_Contact if type == "contact" else LD_Coil)