161 |
group = self.GetTable().GetClassGroup(sel[0]) |
group = self.GetTable().GetClassGroup(sel[0]) |
162 |
if isinstance(group, ClassGroupDefault): |
if isinstance(group, ClassGroupDefault): |
163 |
wxMessageDialog(self, |
wxMessageDialog(self, |
164 |
"The Default group cannot be removed.", |
_("The Default group cannot be removed."), |
165 |
style = wxOK | wxICON_EXCLAMATION).ShowModal() |
style = wxOK | wxICON_EXCLAMATION).ShowModal() |
166 |
return |
return |
167 |
|
|
790 |
controlButtonBox.Add(button_moveup, 0, wxGROW|wxALL, 4) |
controlButtonBox.Add(button_moveup, 0, wxGROW|wxALL, 4) |
791 |
controlButtonBox.Add(button_movedown, 0, wxGROW|wxALL, 4) |
controlButtonBox.Add(button_movedown, 0, wxGROW|wxALL, 4) |
792 |
controlButtonBox.Add(button_edit, 0, wxGROW|wxALL, 4) |
controlButtonBox.Add(button_edit, 0, wxGROW|wxALL, 4) |
793 |
controlButtonBox.Add(60, 20, 0, wxGROW|wxALL|wxALIGN_BOTTOM, 4) |
controlButtonBox.Add( (60, 20), 0, wxGROW|wxALL|wxALIGN_BOTTOM, 4) |
794 |
controlButtonBox.Add(button_remove, 0, |
controlButtonBox.Add(button_remove, 0, |
795 |
wxGROW|wxALL|wxALIGN_BOTTOM, 4) |
wxGROW|wxALL|wxALIGN_BOTTOM, 4) |
796 |
|
|
1407 |
dc.DestroyClippingRegion() |
dc.DestroyClippingRegion() |
1408 |
|
|
1409 |
|
|
1410 |
class ClassGroupPropertiesCtrl(wxWindow, wxControl): |
class ClassGroupPropertiesCtrl(wxControl): |
1411 |
"""A custom window and control that draw a preview of group properties |
"""A custom window and control that draw a preview of group properties |
1412 |
and can open a dialog to modify the properties if the user double-clicks |
and can open a dialog to modify the properties if the user double-clicks |
1413 |
it. |
it. |
1415 |
|
|
1416 |
def __init__(self, parent, id, props, shapeType, |
def __init__(self, parent, id, props, shapeType, |
1417 |
size = wxDefaultSize, style = 0): |
size = wxDefaultSize, style = 0): |
1418 |
|
wxControl.__init__(self, parent, id, size = size, style = style) |
|
wxWindow.__init__(self, parent, id, size = size, style = style) |
|
1419 |
|
|
1420 |
self.parent = parent |
self.parent = parent |
1421 |
|
|