diff -r 255eada20688 -r 9aa1fdfb7cb2 Dialogs.py --- a/Dialogs.py Fri Oct 05 18:11:51 2007 +0200 +++ b/Dialogs.py Wed Oct 17 17:50:27 2007 +0200 @@ -1473,7 +1473,8 @@ name='Inline', parent=self, pos=wx.Point(0, 0), size=wx.Size(0, 24), style=0) self.Bind(wx.EVT_TEXT, self.OnInlineChanged, id=ID_TRANSITIONCONTENTDIALOGINLINE) - + self.Inline.Enable(False) + self.radioButton3 = wx.RadioButton(id=ID_TRANSITIONCONTENTDIALOGRADIOBUTTON3, label='Connection', name='radioButton3', parent=self, pos=wx.Point(0, 0), size=wx.Size(0, 24), style=0) @@ -1599,6 +1600,7 @@ self.Reference.Enable(False) self.Inline.Enable(False) self.Element.SetType("connection") + self.Priority.SetValue(values["priority"]) self.Element.SetPriority(values["priority"]) self.RefreshPreview() @@ -2062,6 +2064,7 @@ self.Bind(wx.EVT_BUTTON, self.OnDownButton, id=ID_ACTIONBLOCKDIALOGDOWNBUTTON) self.ButtonSizer = self.CreateButtonSizer(wx.OK|wx.CANCEL|wx.CENTRE) + self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.ButtonSizer.GetAffirmativeButton().GetId()) self._init_sizers() @@ -2079,6 +2082,10 @@ self.Table.ResetView(self.ActionsGrid) + def OnOK(self, event): + self.ActionsGrid.SetGridCursor(0, 0) + self.EndModal(wx.ID_OK) + def OnAddButton(self, event): self.Table.AppendRow(self.DefaultValue.copy()) self.Table.ResetView(self.ActionsGrid)