dialogs/ConnectionDialog.py
changeset 1878 fb73a6b6622d
parent 1853 47a3f39bead0
child 2587 c67488bd8134
equal deleted inserted replaced
1877:da5f1fa46f2b 1878:fb73a6b6622d
   104             self.Bind(wx.EVT_BUTTON, self.OnApplyToAll, self.ApplyToAllButton)
   104             self.Bind(wx.EVT_BUTTON, self.OnApplyToAll, self.ApplyToAllButton)
   105             self.ButtonSizer.AddWindow(self.ApplyToAllButton, flag=wx.LEFT)
   105             self.ButtonSizer.AddWindow(self.ApplyToAllButton, flag=wx.LEFT)
   106         else:
   106         else:
   107             self.ConnectionName.ChangeValue(
   107             self.ConnectionName.ChangeValue(
   108                 controller.GenerateNewName(
   108                 controller.GenerateNewName(
   109                         tagname, None, "Connection%d", 0))
   109                     tagname, None, "Connection%d", 0))
   110         self.Fit()
   110         self.Fit()
   111 
   111 
   112         # Connector radio button is default control having keyboard focus
   112         # Connector radio button is default control having keyboard focus
   113         self.TypeRadioButtons[CONNECTOR].SetFocus()
   113         self.TypeRadioButtons[CONNECTOR].SetFocus()
   114 
   114