diff -r 3f2024f30553 -r 9dbb79722fbc dialogs/ConnectionDialog.py --- a/dialogs/ConnectionDialog.py Wed Oct 12 23:47:48 2011 +0200 +++ b/dialogs/ConnectionDialog.py Fri Oct 14 19:26:29 2011 +0200 @@ -137,11 +137,11 @@ setattr(self.Preview, "GetDrawingMode", lambda:FREEDRAWING_MODE) setattr(self.Preview, "GetScaling", lambda:None) setattr(self.Preview, "IsOfType", ctrler.IsOfType) - + self.Spacer = wx.Panel(id=ID_CONNECTIONDIALOGSPACER, name='Spacer', parent=self, pos=wx.Point(0, 0), size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL) - + self.ButtonSizer = self.CreateButtonSizer(wx.OK|wx.CANCEL|wx.CENTRE) if wx.VERSION >= (2, 5, 0): self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.ButtonSizer.GetAffirmativeButton().GetId()) @@ -159,6 +159,8 @@ self.PouNames = [] self.PouElementNames = [] + + self.radioButton1.SetFocus() def SetPreviewFont(self, font): self.Preview.SetFont(font) @@ -192,7 +194,7 @@ def SetPouElementNames(self, element_names): self.PouElementNames = [element_name.upper() for element_name in element_names] - + def OnOK(self, event): connection_name = self.ConnectionName.GetValue() if connection_name == "":