Fixed some excessively long lines.

This commit is contained in:
2007-02-21 11:08:20 +00:00
parent 2cc4e86b0a
commit c5c4f13a19

View File

@@ -68,9 +68,9 @@ class IdListController:
self._dimension = dimname self._dimension = dimname
def set_annotation(self, annotation): def set_annotation(self, annotation):
"""Set the displayed annotation to annotation. """Set the displayed annotation to annotation. If annotation is None,
If annotation is None, the annotation column is hidden. Otherwise the annotation the annotation column is hidden. Otherwise the annotation column is
column is shown and filled with values from the given annotation field.""" shown and filled with values from the given annotation field."""
if annotation == self._annotation: if annotation == self._annotation:
return return
@@ -113,7 +113,9 @@ class IdListController:
else: else:
annotations_menu = gtk.Menu() annotations_menu = gtk.Menu()
self._menu_ann.set_sensitive(True) self._menu_ann.set_sensitive(True)
ann_names = annotations.get_dim_handler(self._dimension).get_annotation_names() dh = annotations.get_dim_handler(self._dimension)
ann_names = dh.get_annotation_names()
for ann in ann_names: for ann in ann_names:
item = gtk.MenuItem(ann) item = gtk.MenuItem(ann)
item.connect('activate', self._on_annotation_activated, ann) item.connect('activate', self._on_annotation_activated, ann)