equal
deleted
inserted
replaced
469 |
469 |
470 self._init_sizers() |
470 self._init_sizers() |
471 |
471 |
472 def __init__(self, parent): |
472 def __init__(self, parent): |
473 self._init_ctrls(parent) |
473 self._init_ctrls(parent) |
474 self.ButtonSizer = self.CreateButtonSizer(wxOK|wxCANCEL) |
474 self.ButtonSizer = self.CreateButtonSizer(wxOK|wxCANCEL|wxCENTRE) |
475 self.flexGridSizer1.Add(self.ButtonSizer, 1, wxALIGN_RIGHT) |
475 self.flexGridSizer1.Add(self.ButtonSizer, 1, wxALIGN_RIGHT) |
476 self.Name.SetValue("") |
476 self.Name.SetValue("") |
477 self.Name.Enable(False) |
477 self.Name.Enable(False) |
478 self.Inputs.Enable(False) |
478 self.Inputs.Enable(False) |
479 self.Block = None |
479 self.Block = None |
668 |
668 |
669 self._init_sizers() |
669 self._init_sizers() |
670 |
670 |
671 def __init__(self, parent): |
671 def __init__(self, parent): |
672 self._init_ctrls(parent) |
672 self._init_ctrls(parent) |
673 self.ButtonSizer = self.CreateButtonSizer(wxOK|wxCANCEL) |
673 self.ButtonSizer = self.CreateButtonSizer(wxOK|wxCANCEL|wxCENTRE) |
674 self.flexGridSizer1.Add(self.ButtonSizer, 1, wxALIGN_RIGHT) |
674 self.flexGridSizer1.Add(self.ButtonSizer, 1, wxALIGN_RIGHT) |
675 self.Variable = None |
675 self.Variable = None |
676 self.VarList = [] |
676 self.VarList = [] |
677 self.MinVariableSize = None |
677 self.MinVariableSize = None |
678 self.RefreshNameList() |
678 self.RefreshNameList() |
843 |
843 |
844 self._init_sizers() |
844 self._init_sizers() |
845 |
845 |
846 def __init__(self, parent): |
846 def __init__(self, parent): |
847 self._init_ctrls(parent) |
847 self._init_ctrls(parent) |
848 self.ButtonSizer = self.CreateButtonSizer(wxOK|wxCANCEL) |
848 self.ButtonSizer = self.CreateButtonSizer(wxOK|wxCANCEL|wxCENTRE) |
849 self.flexGridSizer1.Add(self.ButtonSizer, 1, wxALIGN_RIGHT) |
849 self.flexGridSizer1.Add(self.ButtonSizer, 1, wxALIGN_RIGHT) |
850 self.Connection = None |
850 self.Connection = None |
851 self.MinConnectionSize = None |
851 self.MinConnectionSize = None |
852 |
852 |
853 EVT_PAINT(self, self.OnPaint) |
853 EVT_PAINT(self, self.OnPaint) |
890 self.Connection.SetPosition(x, y) |
890 self.Connection.SetPosition(x, y) |
891 self.Connection.Draw(dc) |
891 self.Connection.Draw(dc) |
892 |
892 |
893 def OnPaint(self, event): |
893 def OnPaint(self, event): |
894 self.RefreshPreview() |
894 self.RefreshPreview() |
|
895 |