Changeset 1336
- Timestamp:
- 06/05/07 23:33:45 (1 year ago)
- Files:
-
- gaphor/trunk/gaphor/adapters/propertypages.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor/trunk/gaphor/adapters/propertypages.py
r1335 r1336 18 18 from zope import interface, component 19 19 from gaphor import UML 20 from gaphor.UML.umllex import parse_attribute, render_attribute 20 21 import gaphas.item 21 22 … … 44 45 hbox.pack_start(label, expand=False) 45 46 entry = gtk.Entry() 46 entry.set_text(self.context.subject .name or '')47 entry.set_text(self.context.subject and self.context.subject.name or '') 47 48 entry.connect('changed', self._on_name_change) 48 49 hbox.pack_start(entry) … … 170 171 171 172 for attribute in self.context.subject.ownedAttribute: 172 attributes.append([attribute.render(), attribute]) 173 if not attribute.association: 174 attributes.append([attribute.render(), attribute]) 173 175 attributes.append(['', None]) 174 176 … … 181 183 renderer.set_property('editable', True) 182 184 renderer.connect("edited", self._on_cell_edited, 0) 183 tag_column = gtk.TreeViewColumn('Attribute ', renderer, text=0)185 tag_column = gtk.TreeViewColumn('Attributes', renderer, text=0) 184 186 tree_view.append_column(tag_column) 185 187 … … 476 478 477 479 def __init__(self, context): 478 super(AssociationPropertyPage, self).__init__( )479 self.context = context480 self.size_group = gtk.SizeGroup(gtk.SIZE_GROUP_HORIZONTAL)480 super(AssociationPropertyPage, self).__init__(context) 481 #self.context = context 482 #self.size_group = gtk.SizeGroup(gtk.SIZE_GROUP_HORIZONTAL) 481 483 482 484 def construct(self):
