1239 elif type == "coil": |
1239 elif type == "coil": |
1240 self._init_ctrls(parent, "Edit Coil Values", ['Normal','Negate','Set','Reset']) |
1240 self._init_ctrls(parent, "Edit Coil Values", ['Normal','Negate','Set','Reset']) |
1241 self.Element = LD_Coil(self.Preview, COIL_NORMAL, "") |
1241 self.Element = LD_Coil(self.Preview, COIL_NORMAL, "") |
1242 self.Element.SetPosition((150 - LD_ELEMENT_SIZE[0]) / 2, (150 - LD_ELEMENT_SIZE[1]) / 2) |
1242 self.Element.SetPosition((150 - LD_ELEMENT_SIZE[0]) / 2, (150 - LD_ELEMENT_SIZE[1]) / 2) |
1243 |
1243 |
1244 self.ButtonSizer = self.CreateButtonSizer(wxOK|wxCANCEL) |
1244 self.ButtonSizer = self.CreateButtonSizer(wxOK|wxCANCEL|wxCENTRE) |
1245 self.flexGridSizer1.Add(self.ButtonSizer, 1, wxALIGN_RIGHT) |
1245 self.flexGridSizer1.Add(self.ButtonSizer, 1, wxALIGN_RIGHT) |
1246 |
1246 |
1247 EVT_PAINT(self, self.OnPaint) |
1247 EVT_PAINT(self, self.OnPaint) |
1248 |
1248 |
1249 def SetVariables(self, vars): |
1249 def SetVariables(self, vars): |